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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

1 combo box dependant on another box in the same form?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I have 2 combo boxes in the same Form. I would like to have the options in the second box dependant on the data entered in the first combo box.

An example of this would be doing a search for Automobiles.

The first box would be Make (manufacturer), The second box would be all models of that make (instead of all models of ALL makes)

I'm having trouble linking the two, I have the first box working just fine. I'm having trouble linking the second box (picking from a table with the field titles as the "makes" in the example, and subsequent "models" under each make) to the result from the first choice.

Any help?

TIA for any and all help!
 
In the After Update timing point for the first Combo box, put this code:

me!Combo2.rowsource="Select Models from Manufacturers where Make = '" & me!Combo1.Column(0) & "'"
Me!Combo2.requery

This should cause Combo2 to only reflect the records you want...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top