Filter two tables from one form

G

Guest

How would I make this happen? I have two tables, Company Information, and
Products. On a single form, I want to have two command buttons that will
filter these tables. One will filter Company information, and the other will
filter Products.

Is this possible?
 
G

Guest

Create two queries, one for each table.
In each query create a reference to the text box in the form

QueryName1:
Select ProductTableName.* From ProductTableName Where FieldName =
Forms![MainForm]![TextBoxName]

QueryName2:
Select CompanyTableName.* From CompanyTableName Where FieldName =
Forms![MainForm]![TextBoxName]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top