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

Lookup fields 1

Status
Not open for further replies.

jfrasier

Technical User
Apr 5, 2000
33
US
What I would like to do on a form is for the user to pick a value from a dropdown list and then another lookup field on that form would only have values pertaining to the first choice. In other words a field for state -- the user picks New York and then for city, they only get the choices for cities in New York.

How do you do that?

J. Frasier
 
Cascading Combobox is what this is referred to. You set the criteria of the second combobox on the choice of the first. The rowsource of the second combobox should include the bound column of the first combobox then set this fields criteria as follows:

Forms!FormName!Combobox1

In the AfterUpdate Event property of combobox1 you requery combobox2

Me.Combobox1.Requery
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top