On 17 Jun 2005 04:00:42 -0700, Antoine Janssen wrote:
hi,
I would like to create two combo boxes. In the first one you can select
a user in the second one you can select a project. To simplify the
selection i would like to shorten the project list by just presenting
the projects the selected user is working on (using a where clause with
the userid filled in). Does onyone know how to achieve this?
Kind Regards,
Antoine Janssen
Leave the Rowsource of the second combo box (Combo2) blank.
Code the Combo1 AfterUpdate event:
Combo2.RowSource = "Select ProjectName from tblProjects Where
tblProjects.UserID = " & Me!Combo1 & " Order By ProjectName;"
Change the field and table names above as needed.
The above assumes the UserID is the bound column of Combo1 and is a
Number datatatype.
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.