G
Guest
I am trying to generate a report from a Crosstab Query and I have a few
questions and a couple of problems. First, I want to use a form to prompt a
user-input date range for the report to be generated over. I have created
the parameters in the Query->Parameters area as [Forms]![Report
Creator]![BeginningDate] and [Forms]![Report Creator]![EndingDate]. I have
also put in the line in the criteria area under the date column in the
crosstab query Between [Forms]![Report Creator]![BeginningDate] And
[Forms]![Report Creator]![EndingDate]. Here is my SQL for this query...
PARAMETERS [Forms]![Report Creator]![BeginningDate] DateTime,
[Forms]![Report Creator]![EndingDate] DateTime;
TRANSFORM
Avg((AuditDetails![#Inspected]-AuditDetails![#Failed])/AuditDetails![#Inspected]) AS PassRate
SELECT Location.Line, AuditDetails.AuditType
FROM (Identification INNER JOIN Location ON
Identification.IdentificationID=Location.IdentificationID) INNER JOIN
AuditDetails ON Location.LocationID=AuditDetails.LocationID
WHERE (((Identification.Date) Between Forms![Report Creator]!BeginningDate
And Forms![Report Creator]!EndingDate))
GROUP BY Location.Line, AuditDetails.AuditType, Identification.Date
PIVOT Location.Shift;
I have the report tied to a macro that opens the form [Forms]![Report
Creator] just like in the directions given in the help menu for query by
form. Two things happen. Before the form opens, enter parameter pop up
boxes asking for [Forms]![Report Creator]![BeginningDate] and [Forms]![Report
Creator]![EndingDate]. Once those are entered the form appears. In the
BeginningDate blank, if I enter any date other than the first date for which
I have data, the following error appears and no report will be generated...
"The Microsoft Jet database engine does not recognize " as a valid field
name or expression"
I have checked everything for spelling errors and have found none. What is
causing this, and what can I do to get these reports to compile properly?
Thanks in advance.
questions and a couple of problems. First, I want to use a form to prompt a
user-input date range for the report to be generated over. I have created
the parameters in the Query->Parameters area as [Forms]![Report
Creator]![BeginningDate] and [Forms]![Report Creator]![EndingDate]. I have
also put in the line in the criteria area under the date column in the
crosstab query Between [Forms]![Report Creator]![BeginningDate] And
[Forms]![Report Creator]![EndingDate]. Here is my SQL for this query...
PARAMETERS [Forms]![Report Creator]![BeginningDate] DateTime,
[Forms]![Report Creator]![EndingDate] DateTime;
TRANSFORM
Avg((AuditDetails![#Inspected]-AuditDetails![#Failed])/AuditDetails![#Inspected]) AS PassRate
SELECT Location.Line, AuditDetails.AuditType
FROM (Identification INNER JOIN Location ON
Identification.IdentificationID=Location.IdentificationID) INNER JOIN
AuditDetails ON Location.LocationID=AuditDetails.LocationID
WHERE (((Identification.Date) Between Forms![Report Creator]!BeginningDate
And Forms![Report Creator]!EndingDate))
GROUP BY Location.Line, AuditDetails.AuditType, Identification.Date
PIVOT Location.Shift;
I have the report tied to a macro that opens the form [Forms]![Report
Creator] just like in the directions given in the help menu for query by
form. Two things happen. Before the form opens, enter parameter pop up
boxes asking for [Forms]![Report Creator]![BeginningDate] and [Forms]![Report
Creator]![EndingDate]. Once those are entered the form appears. In the
BeginningDate blank, if I enter any date other than the first date for which
I have data, the following error appears and no report will be generated...
"The Microsoft Jet database engine does not recognize " as a valid field
name or expression"
I have checked everything for spelling errors and have found none. What is
causing this, and what can I do to get these reports to compile properly?
Thanks in advance.