I went through every nook and cranny of my report.
Nothing refers to the query name except in the
RecordSource. Something different has come up now. The
lastest message I have received reads: "Microsoft Access
can't find the name 'End_Date'you entered in the
expression. You may have specified a control that wasn't
on the current object without specifying the correct form
or report context."
I haven't changed anything other than the parameter in the
query to make sure it still ran as it should. If I can't
get the report to run properly, I may need to set up the
query to run as a report instead until I can resolve this
issue. (Reports due now.)
Thanks John for all your help. I went to your site hoping
to find the answers needed, seems I'm not alone with
this. The only problem I have everyone keeps referring to
a form when I'm dealing with reports and queries. Am I
missing something?
-----Original Message-----
This is the SQL after the date parameter has been added:
PARAMETERS [Start_Date] DateTime, [End_Date] DateTime;
TRANSFORM Count([GRIEVANCE LOG].[FILE#]) AS [The Value]
SELECT [GRIEVANCE LOG].GRVUNIT, Count([GRIEVANCE LOG].
[FILE#]) AS [Total Of FILE#]
FROM [GRIEVANCE LOG]
WHERE ((([GRIEVANCE LOG].[DATE RCVD]) Between [Start_Date]
And [End_Date]))
GROUP BY [GRIEVANCE LOG].GRVUNIT, [GRIEVANCE LOG].[DATE
RCVD]
PIVOT [GRIEVANCE LOG].CAT;
The query runs fine. But when I try to run the report, I
get the error: "The Microsoft Jet Database Engine does
not recognize 'Area Summary qry' as a valid field name or
expression." It's confusing to me because the query
itself runs without a problem. When I try to create
another report based on the same cross-tab query, no
fields are shown in the selection box.
Any suggestions.
Look on the Report - particularly in all the Sorting and Grouping
dialogs (the Report's S&G and each section's S&G). It sounds like you
have [Area Summary qry] referenced somewhere, probably in a context
which Access would expect a fieldname. What name did you use when you
saved the above SQL? Was [Area Summmary qry] perhaps an earlier name
that you've now changed?
.