I would not use YearStar you used. I would have two fields: intStartMonth and intStartDay (both are type Integer). For each title I would set both of them, e.g. intStartMonth = 10, intStartDay = 30.
Then to make the comparison use these in a query or in code:
dtmStartDate = DateSerial(Year(Date()), intStartMonth, intStartDate)
dtmEndDate = DateAdd("yyyy", 1, dtmStartDate)
I assumed you always want to check during the same year you run the query, e.g. Year(Date()). If not, change that to the correct year.
Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division
|