Count A Group Between Dates
Jan 25, 2006here goes
im trying to count the number in a group between a time period. the query takes a time period from a form runs then reports who and how many heres what i get
SELECT tblEstimate.Client, Count(tblEstimate.Recieved) AS MyCount
FROM tblEstimate
GROUP BY tblEstimate.Client, tblEstimate.Recieved
HAVING (((tblEstimate.Recieved)>=[Forms]![frmEnquireFront]![EqfromDate] And (tblEstimate.Recieved)<=[Forms]![frmEnquireFront]![EnqtoDate]))
ORDER BY tblEstimate.Client;
Client MyCount
Amey Vectra Ltd 1
Amey Vectra Ltd 1
Ashworth Mairs Group1
Property Consortium1
Property Consortium1
heres what im trying to achieve
Client MyCount
Amey Vectra Ltd 2
Ashworth Mairs Group1
Property Consortium2
am i going about this the wrong way
is there an easier way
any help would be great
thanks in advance
john:confused: