Import records from last month

martinainscough

Registered User.
Local time
Today, 23:14
Joined
Apr 8, 2004
Messages
18
I have a table accessable by ODBC and am trying to create a query to only import the records for the previous month. I am struggling on the criteria for the query.

If anyone could help me it would be much appreciated

Thanks

Martin
 
Add an expression field to the query: =Month(MyDateField)

And as the criteria for that field: Month(DateAdd("m", -1, Date()))
 
Thanks, that worked great!

Martin
 

Users who are viewing this thread

Back
Top Bottom