Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / May 2007

Tip: Looking for answers? Try searching our database.

Filter two tables from one form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Daniel - 07 May 2007 21:45 GMT
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?
Ofer Cohen - 08 May 2007 11:14 GMT
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]

Signature

Good Luck
BS"D

> 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?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.