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

Find a record in the listbox

Status
Not open for further replies.

sabavno

Programmer
Jul 25, 2002
381
CA
Hi,

I have populated a listbox based on the query. Now I want to include a button "FIND" to find a record (row in the listbox) that includes a field(column) value that the user inputs in the input box.

PLEASE....advise on this issue

Thanks
 

Don’t make it so difficult.

You don’t need a find button. You can use the after update event of your combo box. Just make sure that if the field displayed in the combo box cannot directly be used to look up the corresponding row in your other table(s) that you include a hidden column in your combo box which includes the foreign key to your other table. In fact, you can make the lower part of your main form into a child form container, and relate the combo box to the sub forms as a child field. Then, whenever the user picks a value from the combo box, Access will automatically load your child form with the linked record.
Robert Berman
Data Base consultant
Vulcan Software Services
thornmastr@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top