Hi,
Query syntax gets me everytime. I inherited a database that will run on a schedule the 2nd day of the month and pulls records with this criteria for a date field: Between Date()-33 And Date(). Subsequently it will pull all records from previous month as well as a few from 2 months ago and this month. The previously developer didn't mind because he replaced the table each month and ignored the extra records. Now I want to build a history and don't want duplicate records.
I would like to change that criteria to use today's date to see if the date field was within last month. I'm struggling with how to code that criteria, as an example I tried this: Not =Month("Date")-1 which is really off I know. Ideas?
Thanks!
Query syntax gets me everytime. I inherited a database that will run on a schedule the 2nd day of the month and pulls records with this criteria for a date field: Between Date()-33 And Date(). Subsequently it will pull all records from previous month as well as a few from 2 months ago and this month. The previously developer didn't mind because he replaced the table each month and ignored the extra records. Now I want to build a history and don't want duplicate records.
I would like to change that criteria to use today's date to see if the date field was within last month. I'm struggling with how to code that criteria, as an example I tried this: Not =Month("Date")-1 which is really off I know. Ideas?
Thanks!