A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Criteria in Query



 
 
Thread Tools Display Modes
  #1  
Old September 13th, 2005, 05:59 PM
Gibson
external usenet poster
 
Posts: n/a
Default 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  
Old September 13th, 2005, 10:31 PM
KARL DEWEY
external usenet poster
 
Posts: n/a
Default

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 05:53 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.