M
Matt Braymiller
Greetings:
Below is a short SQL statement for a query to show how many calls we
received from each customer for the current date.
TRANSFORM Count([qry-WO].[WO-Data_WO-Number]) AS
[CountOfWO-Data_WO-Number]
SELECT [qry-WO].[S-Data_Store-Type],
Count([qry-WO].[WO-Data_WO-Number]) AS [Total Calls]
FROM [qry-WO]
WHERE ((([qry-WO].[WO-Data_Date-Issued])=Date()))
GROUP BY [qry-WO].[S-Data_Store-Type]
PIVOT [qry-WO].[WO-Data_DWM-Contact];
Is there a way to allow a date range in the WHERE clause? I have
tried: WHERE ((([qry-WO].[WO-Data_Date-Issued])=(Between [Enter First]
and [Enter Last])), but Access doesn't like the syntax. I can work
around it if I use a make table query to return records for the
specified dates and then run the crosstab on that table.
Below is a short SQL statement for a query to show how many calls we
received from each customer for the current date.
TRANSFORM Count([qry-WO].[WO-Data_WO-Number]) AS
[CountOfWO-Data_WO-Number]
SELECT [qry-WO].[S-Data_Store-Type],
Count([qry-WO].[WO-Data_WO-Number]) AS [Total Calls]
FROM [qry-WO]
WHERE ((([qry-WO].[WO-Data_Date-Issued])=Date()))
GROUP BY [qry-WO].[S-Data_Store-Type]
PIVOT [qry-WO].[WO-Data_DWM-Contact];
Is there a way to allow a date range in the WHERE clause? I have
tried: WHERE ((([qry-WO].[WO-Data_Date-Issued])=(Between [Enter First]
and [Enter Last])), but Access doesn't like the syntax. I can work
around it if I use a make table query to return records for the
specified dates and then run the crosstab on that table.