Syntax Error Crosstab Query

maabbas

Registered User.
Local time
Today, 12:27
Joined
Feb 15, 2012
Messages
69
Syntax Error Crosstab Query with Criteria

I have a following code in crosstab query to bring the result between range of date, will anyone help me out to solve this issue, the only thing I want to give criteria (range of date) to crosstab query

PARAMETERS [Start Date] DateTime, [End Date] DateTime;
TRANSFORM Sum([QRY Production].Lbs_Produce) AS SumOfLbs_Produce
SELECT [QRY Production].ProductID, Sum([QRY Production].Lbs_Produce) AS [Total Of Lbs_Produce]
FROM [QRY Production]
WHERE (QRY Producuction.[Production_Date] BETWEEN [Start Date] AND [End Date])
GROUP BY [QRY Production].ProductID
PIVOT Format([Production_Date],"Short Date");
 
Last edited:

Users who are viewing this thread

Back
Top Bottom