If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Criteria in Query
I have a query (main query) whose data comes from one table and one query
(data query). In the main query I have criteria such as Forms!frm1!Field1 so it only retrieves data for the contents of Field1. The problem is the data query needs to be filtered the same way but when I put the identical criteria in the data query and try to open the form I receive an error saying "No value given for one or more required parameters." If I take the criteria out of the data query then the form opens fine but of course the data is not what I want. Any way to have the criteria in both queries and supply them when opening th form? |
#2
|
|||
|
|||
The first form - Forms!frm1!Field1 - must be open when you open the second
form. "Gibson" wrote: I have a query (main query) whose data comes from one table and one query (data query). In the main query I have criteria such as Forms!frm1!Field1 so it only retrieves data for the contents of Field1. The problem is the data query needs to be filtered the same way but when I put the identical criteria in the data query and try to open the form I receive an error saying "No value given for one or more required parameters." If I take the criteria out of the data query then the form opens fine but of course the data is not what I want. Any way to have the criteria in both queries and supply them when opening th form? |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
SQL query showing diff between actual and budget | Bon | Running & Setting Up Queries | 3 | August 25th, 2005 12:07 PM |
criteria in a query | Ulcom | Using Forms | 1 | December 16th, 2004 08:49 PM |
Report Criteria: Query works, but report doesn't call up query??? | BARKAROO | New Users | 5 | October 18th, 2004 06:35 PM |
Big number gives error! | Sara Mellen | Running & Setting Up Queries | 8 | October 11th, 2004 02:48 AM |
Specifying no criteria in a query | Big Tony | Running & Setting Up Queries | 1 | August 12th, 2004 01:09 AM |