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

same query for list box different filter on mulitple forms 1

Status
Not open for further replies.

JaredTaylor74

Technical User
Jul 26, 2004
51
US
I have a list box pulling from a query, I want to put this list box on multiple forms and filter it by the moldsetid on each form. I don't want to have a bunch of queries that are the same except for the filter... so i want them all to pull from the same query, just filtered by the form... how do i do this?

Thanks,
Jared
 
To make it work, set the moldsetid control name to the same name on each of the forms (i.e. txtMoldSetId). Then set the RowSource property of the list box to something like this:

SELECT ... From ... Where (moldsetid = [txtMoldSetId])
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top