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 » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Problem with 1 Query with Criteria feeding another query



 
 
Thread Tools Display Modes
  #1  
Old March 26th, 2010, 01:32 PM posted to microsoft.public.access
Robbro
external usenet poster
 
Posts: 82
Default Problem with 1 Query with Criteria feeding another query

I have one query summarizing data that then feeds another query that begins
to work on it. I made a form to filter the very first query in my process by
date, right now I have 2 items begdate and enddate. I added the date field
of the underlying table to my first query and in design view on "Total"
selected "where" and in the criteria section added
"[Forms]![frmFilterForm]![enddate] And [Forms]![frmFilterForm]![startdate]"
Opening this Query works fine and results in the correct info being shown.

When I try to open any query which is based on the first one above I get an
error about Access not recognizing [Forms]![frmFilterForm]![enddate] as a
valid field, name or expression?

  #2  
Old March 26th, 2010, 01:58 PM posted to microsoft.public.access
Robbro
external usenet poster
 
Posts: 82
Default Problem with 1 Query with Criteria feeding another query

Nevermind, found it. I did search the forums before posting but not
thoroughly enough I guess.


"Robbro" wrote:

I have one query summarizing data that then feeds another query that begins
to work on it. I made a form to filter the very first query in my process by
date, right now I have 2 items begdate and enddate. I added the date field
of the underlying table to my first query and in design view on "Total"
selected "where" and in the criteria section added
"[Forms]![frmFilterForm]![enddate] And [Forms]![frmFilterForm]![startdate]"
Opening this Query works fine and results in the correct info being shown.

When I try to open any query which is based on the first one above I get an
error about Access not recognizing [Forms]![frmFilterForm]![enddate] as a
valid field, name or expression?

  #3  
Old March 26th, 2010, 02:44 PM posted to microsoft.public.access
Jeff Boyce
external usenet poster
 
Posts: 8,621
Default Problem with 1 Query with Criteria feeding another query

Others may face what you have. If you post the solution you found, others
could benefit when they search.

Regards

Jeff Boyce
Microsoft Access MVP

--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.

Any code or pseudocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer
possible/necessary.

"Robbro" wrote in message
...
Nevermind, found it. I did search the forums before posting but not
thoroughly enough I guess.


"Robbro" wrote:

I have one query summarizing data that then feeds another query that
begins
to work on it. I made a form to filter the very first query in my
process by
date, right now I have 2 items begdate and enddate. I added the date
field
of the underlying table to my first query and in design view on "Total"
selected "where" and in the criteria section added
"[Forms]![frmFilterForm]![enddate] And
[Forms]![frmFilterForm]![startdate]"

Opening this Query works fine and results in the correct info being
shown.

When I try to open any query which is based on the first one above I get
an
error about Access not recognizing [Forms]![frmFilterForm]![enddate] as a
valid field, name or expression?



  #4  
Old March 26th, 2010, 05:17 PM posted to microsoft.public.access
Robbro
external usenet poster
 
Posts: 82
Default Problem with 1 Query with Criteria feeding another query

http://allenbrowne.com/ser-67.html#Param

I had to declare my form fields as parameters in my crosstab query.
Not sure what that means but it works

"Jeff Boyce" wrote:

Others may face what you have. If you post the solution you found, others
could benefit when they search.

Regards

Jeff Boyce
Microsoft Access MVP

--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.

Any code or pseudocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer
possible/necessary.

"Robbro" wrote in message
...
Nevermind, found it. I did search the forums before posting but not
thoroughly enough I guess.


"Robbro" wrote:

I have one query summarizing data that then feeds another query that
begins
to work on it. I made a form to filter the very first query in my
process by
date, right now I have 2 items begdate and enddate. I added the date
field
of the underlying table to my first query and in design view on "Total"
selected "where" and in the criteria section added
"[Forms]![frmFilterForm]![enddate] And
[Forms]![frmFilterForm]![startdate]"
Opening this Query works fine and results in the correct info being
shown.

When I try to open any query which is based on the first one above I get
an
error about Access not recognizing [Forms]![frmFilterForm]![enddate] as a
valid field, name or expression?



.

 




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


All times are GMT +1. The time now is 06:39 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.