I have 2 fields Year and Month. They are both numeric and in YYYY and MM formats.
I’m trying to write a query that will select records that are less than the current date.
For Year I’m using <=Year(Date()).
For Month I’m using <Month(Date()).
Because we are in Feb, I’m only selecting records for Jan.
How would I change the Month criteria to select records like 11 or 12 for months from the previous year?
Thank you in advance for your help,
Kopy
I’m trying to write a query that will select records that are less than the current date.
For Year I’m using <=Year(Date()).
For Month I’m using <Month(Date()).
Because we are in Feb, I’m only selecting records for Jan.
How would I change the Month criteria to select records like 11 or 12 for months from the previous year?
Thank you in advance for your help,
Kopy