Guest_imported
New member
- Jan 1, 1970
- 0
Please help!!
I am having problems with a paramter query I have created. The query correctly prompts for a start and end date. What then happens is that it displays total costs information and the number of records (using the count function) for each individual record over that time period.
What I want to happen is that it just displays the total costs and number of records for all the records within the time period specified - in effect 1 record or row of summary information.
Any ideas would be gratefully received!
Rgds, LL
P.S. don't know if this helps, but here is the SQL for the query:
SELECT ESS_tbl.[Won, Pending or Lost], ESS_tbl.Date, Sum(ESS_tbl.[Estimate Value]) AS [SumOfEstimate Value], Count(ESS_tbl.[Won, Pending or Lost]) AS [CountOfWon, Pending or Lost]
FROM ESS_tbl
GROUP BY ESS_tbl.[Won, Pending or Lost], ESS_tbl.Date
HAVING (((ESS_tbl.[Won, Pending or Lost])="won" AND ((ESS_tbl.Date) Like "??/??/?0" And (ESS_tbl.Date) Between [Please enter start date] And [Please enter end date]));
I am having problems with a paramter query I have created. The query correctly prompts for a start and end date. What then happens is that it displays total costs information and the number of records (using the count function) for each individual record over that time period.
What I want to happen is that it just displays the total costs and number of records for all the records within the time period specified - in effect 1 record or row of summary information.
Any ideas would be gratefully received!
Rgds, LL
P.S. don't know if this helps, but here is the SQL for the query:
SELECT ESS_tbl.[Won, Pending or Lost], ESS_tbl.Date, Sum(ESS_tbl.[Estimate Value]) AS [SumOfEstimate Value], Count(ESS_tbl.[Won, Pending or Lost]) AS [CountOfWon, Pending or Lost]
FROM ESS_tbl
GROUP BY ESS_tbl.[Won, Pending or Lost], ESS_tbl.Date
HAVING (((ESS_tbl.[Won, Pending or Lost])="won" AND ((ESS_tbl.Date) Like "??/??/?0" And (ESS_tbl.Date) Between [Please enter start date] And [Please enter end date]));