Just wondering what the story is with this. I've a date variable which is #11/21/2009#. If I hover over it, the popup shows 21/11/2009. I expect MM and DD can be reversed but would have expected to see it formatted properly. For example without the # Access prints 21 / 11 / 2009 which is something else, yes?
That aside the variable name is inDate.
If I print Day(inDate) it's 21, Month(inDate) is 11.
Why does Year (inDate) give "type Mismatch' error?
I want an IF clause to kick in where the year is > 2009. I could change to strings, but is not using Date variables or methods more 'correct' ?
That aside the variable name is inDate.
If I print Day(inDate) it's 21, Month(inDate) is 11.
Why does Year (inDate) give "type Mismatch' error?
I want an IF clause to kick in where the year is > 2009. I could change to strings, but is not using Date variables or methods more 'correct' ?