Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

in forms i want to make one combo box dependint on another

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
i know how to creat a combo box that contains the information i want but i cant make it dependent on the perciding one,

ex: if in the first box i pick boy, i want the choices in the second to be jack, jim, etc, but if i put girl in the first i want the choices in the second box to be jill, brenda, etc.

can any one help me with this prolbem

thx
 
In the AfterUpdate event for the first combo box, do a Requery action on the second combo box. For example:
Code:
Private Sub Combo1_AfterUpdate()
  'Modify the RowSource of Combo2 here (if needed), then
  Me!Combo2.Requery
End Sub
 
jfischer or shaman...

any ideas on how to take this another step?

e.g. how to make a third combo dependent on the selection in the second combo (which was filtered based upon the selection in the first combo)?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top