I am designing a database in Access 2013 for my boss and am stuck trying to create a specific select query.
The query will pull up data from a number of tables to produce a comprehensive update on the exactly what work has been carried out for a particular job. The idea is that the user will enter our reference number as a search criteria in one of two forms ("Search Jobs" or "Main Menu") to find the specific record.
Rather than create two separate queries (and possibly more as the database expands), is it possible to have a select query search on either input when only one form will be open?
In the select query, if I have the criteria set as:
If I take out the "Or Is Null" property, the query will not run until I manually enter a reference number. The query will return a value in its current configuration if both forms are open however when the database is live, only one of the two forms will be open at once. I have found a work around which is to open the other form minimized until the query has run and then close it again however I am sure that there must be a better way to do this.
Thanks in advance for your help.
The query will pull up data from a number of tables to produce a comprehensive update on the exactly what work has been carried out for a particular job. The idea is that the user will enter our reference number as a search criteria in one of two forms ("Search Jobs" or "Main Menu") to find the specific record.
Rather than create two separate queries (and possibly more as the database expands), is it possible to have a select query search on either input when only one form will be open?
In the select query, if I have the criteria set as:
Code:
=[Forms]![SearchJobs]![OurReferenceNumber] Or Is Null
or
=[Forms]![MainMenuSearch]![OurReferenceNumber] Or Is Null
Thanks in advance for your help.