G
Guest
I am trying to view records from 9/1/04 to 11/30/04 and for some reason when
I do this nothing comes up.
I currently have it set up to view the records from 7/1/04 to 9/30/04. The
SQL looks like this:
SELECT DISTINCTROW First(Format$([Vital Signs - Correspondence].[Date of
Activity],'m/yyyy')) AS [Month], Sum([Vital Signs - Correspondence].Quantity)
AS [Total Correspondence Processed]
FROM [Vital Signs - Correspondence]
GROUP BY Year([Vital Signs - Correspondence].[Date of
Activity])*12+DatePart('m',[Vital Signs - Correspondence].[Date of
Activity])-1
HAVING (((First(Format$([Vital Signs - Correspondence].[Date of
Activity],'m/yyyy')))>=#7/1/2004# And (First(Format$([Vital Signs -
Correspondence].[Date of Activity],'m/yyyy')))<=#9/30/2004#));
I think it has something to do with the fact that October and November have
two digits for the month (11/30/04)instead of just one (9/30/04).
If anyone has any suggestions I would greatly appreciate it.
Thanks.
I do this nothing comes up.
I currently have it set up to view the records from 7/1/04 to 9/30/04. The
SQL looks like this:
SELECT DISTINCTROW First(Format$([Vital Signs - Correspondence].[Date of
Activity],'m/yyyy')) AS [Month], Sum([Vital Signs - Correspondence].Quantity)
AS [Total Correspondence Processed]
FROM [Vital Signs - Correspondence]
GROUP BY Year([Vital Signs - Correspondence].[Date of
Activity])*12+DatePart('m',[Vital Signs - Correspondence].[Date of
Activity])-1
HAVING (((First(Format$([Vital Signs - Correspondence].[Date of
Activity],'m/yyyy')))>=#7/1/2004# And (First(Format$([Vital Signs -
Correspondence].[Date of Activity],'m/yyyy')))<=#9/30/2004#));
I think it has something to do with the fact that October and November have
two digits for the month (11/30/04)instead of just one (9/30/04).
If anyone has any suggestions I would greatly appreciate it.
Thanks.