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

Clicking on a form record to open another query

Status
Not open for further replies.

scottyjohn

Technical User
Nov 5, 2001
523
GB
Hi all,
I have QueryA which returns three fields in a List box on a report. I have added the behaviour to open a new query QueryB which runs using a value from column 1 in QueryA, but I cant get this run correctly. How do you tell the new query QueryB to get its criteria for the query from the column 1 in QueryA? I cant seem to get it to pass the data to the next query.

John
[smile]
 
The value should be available from the List Box. Typically the list box would be bound to column 1. Then try something like the following expression in the criteria of the query:
Code:
   Forms!frmYourForm!lboYourListBox



Duane
Hook'D on Access
MS Access MVP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top