With this it refuses to group (I get all individual records):
SELECT RecordDate, RecordType, sum(HowMany) AS Num
FROM tblAddress
WHERE RecordDate Between NZ([forms]![frmPrint]![StartDate],#1/1/1901#) And
NZ([forms]![frmPrint]![EndDate],#1/1/2999#)
GROUP BY RecordDate, RecordType;
With this it does group:
SELECT RecordDate, RecordType, sum(HowMany) AS Num
FROM tblAddress
WHERE RecordDate Between #1/1/1901# And #1/1/2999#
GROUP BY RecordDate, RecordType;
I'm using Access 2003. Any idea why?
Douglas J. Steele said:
What do you mean by not working? What do you get?
--
Doug Steele, Microsoft Access MVP
(no private e-mails, please)
mscertified said:
SELECT RecordDate, RecordType, Sum(HowMany) AS [Num]
FROM qrySummary1
GROUP BY RecordDate, RecordType;
This query refuses to do the grouping. Is it because one of the columns is
a
date?