Question : Access Date Interval Query

Hi,
I need to create a query in MS Access which will show all the records from the 19th of the previous month, up till the 18th of the current month. This will be done indefinitely therefore the change in years needs to be taken into account.
The table name is "SecurIDs" and the date field is named "dateSent" a Date/Time Date Type.

All help is greatly appreciated.
Thanks in advance!!!

Answer : Access Date Interval Query

Try:

SELECT * FROM SecurIDs WHERE dateSent>=DateSerial(Year(DateAdd("m",-1,Date())),Month(DateAdd("m",-1,Date())),19) AND dateSent<=DateSerial(Year(Date()),Month(Date()),18)
Random Solutions  
 
programming4us programming4us