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

Lookup Link

Status
Not open for further replies.

WJProctor

Programmer
Jun 20, 2003
151
GB
Hi there, im having problems with look up links. When I select a value in one i want it to change the possible values in another lookup, how do i do this. For example if i select an address in one field then in another field i want only the people who live their to be listed. Is this possible? Hope someone can help me out.

James
 
For example, ComboBox1 is the address list, ComboBox2 is the list of people with addresses.

In the AfterUpdate event of ComboBox1:

Me![ComboBox2].RowSource = "Select [Last Name] from [Addresses] WHERE [Address] = '" & Me![ComboBox1] & "'"

Hope this helps!

Anthony J. DeSalvo
President - ScottTech Software
"Integrating Technology with Business"
 
See if this FAQ can help you: faq702-681

Rick Sprague
Want the best answers? See faq181-2886
To write a program from scratch, first create the universe. - Paraphrased from Albert Einstein
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top