I see something out of line....
The SQL statement starts out with the TRANSFORM keyword. That means that this is a crosstab
query. When you include parameters in a crosstab query, you must define the parameter
explicitly. See the following KB article:
Error When Running Crosstab Query with a Parameter
http://support.microsoft.com/?id=209778
For more information on creating crosstab queries, see
How To Create A Crosstab Query
http://www.access.qbuilt.com/html/crosstab_queries.html
Tom
_________________________________
I don't see anything out of line (except you've double included
RollCall.RCDate in the GROUP BY clause). I'm guessing that the query has
already become "confused" by the earlier use of Date.
Try creating an entirely new query using this new SQL statement.
--
Ken Snell
<MS ACCESS MVP>
_________________________________
Yes, I forgot about that... I changed the Date field to RCDate and it still
gives the error?
Here's the SQL:
TRANSFORM Count(RollCall.MemberID) AS CountOfMemberID
SELECT opGrades.AutoID, RollCall.RCDate, Roster.Grade, Ministry.Name,
Ministry.ID, Count(RollCall.MemberID) AS Totals
FROM Ministry INNER JOIN (SubMinistry INNER JOIN (opGrades INNER JOIN
(Roster INNER JOIN RollCall ON Roster.MemberID = RollCall.MemberID) ON
opGrades.Grade = Roster.Grade) ON SubMinistry.Grade = RollCall.Grade) ON
Ministry.ID = SubMinistry.MinistryID
WHERE (((RollCall.RCDate)=[Forms]![Test]![RCDate]))
GROUP BY opGrades.AutoID, RollCall.RCDate, Roster.Grade, Ministry.Name,
Ministry.ID, RollCall.RCDate
PIVOT RollCall.Service;
Thanks
_________________________________
Also, don't use Date as a field or control name. It's a reserved word in ACCESS, and ACCESS can
become quite confused. See KB article number 286335 for more info:
ACC2002: Reserved Words in Microsoft Access
http://support.microsoft.com/default.aspx?scid=kb;en-us;286335
--
Ken Snell
<MS ACCESS MVP>
_________________________________
Error Message:
The Microsoft Jet database engine does not recognize