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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|