MichaelintheUK
Programmer
I am confused by the inconsistency of the Day function in MS Access - I have a module where I need to get
the Year(myDate),
the Month(myDate) and
the Day(myDate) with myDate being a date variable.
The month and year work fine - however the day gives a type 13 error. I am working around it by getting the "dd" format of myDate e.g.
myDay = format(myDate,"dd").
However what can account for this inconsistency?
Thanks
Michael
the Year(myDate),
the Month(myDate) and
the Day(myDate) with myDate being a date variable.
The month and year work fine - however the day gives a type 13 error. I am working around it by getting the "dd" format of myDate e.g.
myDay = format(myDate,"dd").
However what can account for this inconsistency?
Thanks
Michael