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!

finding a record in a listbox using a command button

Status
Not open for further replies.

OOO

Technical User
Nov 15, 2001
3
0
0
NL
Hi
I am creating a db where I am to make a switch board that contians a listbox with course# and coursename as the fields in the listbox, and by clicking the record in the listbox, then using a command button to find the record, would it come from the query or the table and more importantly how do I make the command button and listbox work together like above????????

Thank you very much in advance!!!!!!!
 
It will work just like you want it to.

the command button needs to to pass a new recordsource to the form
like so:

Me!recordsource = "Select * From yourTable Where somefield = '" me!List1.text & "'" DougP, MCP

Visit my WEB site to see how Bar-codes can help you be more productive
 
I dont really understand could u try again plzzzz
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top