Only thing I can think of is
I forgot "()" after Date functions:
SELECT Applications.Surname, Applications.Forename,
Applications.[Policy Type], Applications.Company, Applications.Adviser,
Applications.[Commission Due], Applications.[ETA Commission],
Applications.[Submission Date]
FROM Applications
WHERE
Applications.[Submission Date] >= DateSerial(Year(Date()),Month(Date())-1,1)
AND
Applications.[Submission Date] < DateSerial(Year(Date()),Month(Date()),1);
In Immediate Window,
(type simultaneously <ALT> <F11>)
what do you get if you type
?DateSerial(Year(Date()),Month(Date())-1,1)
(then hit <ENTER. key)
then type
?DateSerial(Year(Date()),Month(Date()),1)
(then hit <ENTER. key)
This is what I get:
?DateSerial(Year(Date()),Month(Date())-1,1)
5/1/2005
?DateSerial(Year(Date()),Month(Date()),1)
6/1/2005
the first gives me the first day of last month
the second gives me the first day of current month
So the above query is same as
SELECT Applications.Surname, Applications.Forename,
Applications.[Policy Type], Applications.Company, Applications.Adviser,
Applications.[Commission Due], Applications.[ETA Commission],
Applications.[Submission Date]
FROM Applications
WHERE
Applications.[Submission Date] >= #5/1/2005#
AND
Applications.[Submission Date] < #6/1/2005#;
Which (I believe is what you wanted) should
give you all records whose Submission Date
(if it is a Date/Time data type)
occurs in the month of May 2005.
good luck,
gary