J
Juan Schwartz
I am running a query that prompts for a date and runs a week from that
day. Right now, no matter what is entered, it returns all of the
records in the table. Here is the query.
PARAMETERS [Enter Week Start Date(mm/dd/yy): ] DateTime;
TRANSFORM NZ(Count([Itemized Records].Subject),0) AS Calls
SELECT [Itemized Records].Subject
FROM [Itemized Records]
WHERE (((Format([Date],"mm/dd/yy")) Between [Enter Week Start
Date(mm/dd/yy): ] And (DateAdd("d",6,[Enter Week Start Date(mm/dd/yy):
]))) AND (([Itemized Records].IntrType)="Phone"))
GROUP BY [Itemized Records].Subject
PIVOT Format([Date],"yyyy-mm-dd");
day. Right now, no matter what is entered, it returns all of the
records in the table. Here is the query.
PARAMETERS [Enter Week Start Date(mm/dd/yy): ] DateTime;
TRANSFORM NZ(Count([Itemized Records].Subject),0) AS Calls
SELECT [Itemized Records].Subject
FROM [Itemized Records]
WHERE (((Format([Date],"mm/dd/yy")) Between [Enter Week Start
Date(mm/dd/yy): ] And (DateAdd("d",6,[Enter Week Start Date(mm/dd/yy):
]))) AND (([Itemized Records].IntrType)="Phone"))
GROUP BY [Itemized Records].Subject
PIVOT Format([Date],"yyyy-mm-dd");