allan57 said:
If Format(Now(), "yyyymmdd") > "20060601" And Format(Now(), "20061001")
??? I suspect allan57 Probably intended
If Format(Now(), "yyyymmdd") > "20060601" And Format(Now(), "yyyymmdd") < "20061001"
Which I expect would work...
...However - I think what you are saying about it "messing around with the date formats" is the key - the final code you posted demonstrates how it has "messed around".
You probably input #30/6/2006# - UK / AU etc format, (yes ?)
to which Access thinks to itself... "there aren't 30 months in a year, so he must've meant '#6/30/2006#' and changes it to that
for you (what a help !!!)
Then when you input #1/10/2006# intending 01-OCT-2006, access says to itself "yep - 10-JAN-06, no problemo".
I prefer to input as #01-OCT-2006# or #30-JUN-2006#, and then I can be reasonably sure that accesss will interpret the date as I intended. I think it always uses US formats between #'s, and I think that is also what SQL demands. So alternately, you can just put in US formats yourself, but I always have to think twice about that and second-guess myself, so prefer to spell it out using a few extra keystrokes.
Also, if you wish to have no regard for the time component, it is adviseable to use Date() instead of Now().
HTH
Regards
John.