G
goldcomm
Guest
I have a problem with an event procedure that was working fine up until 2001
A user is prompted on a form for a date to be used as a criteria for an SQL query e.g.
dtCriteria = Format(Me.Weeksaturday, "mm\/dd\/yyyy")
As a UK user I have converted the date to USA format as I understand SQL assumes this
However if the date is greater than 12 of the month e.g. 17 March 2001 it gets interpreted as 01-Mar-17
17 March 2000 worked fine using above methodology
Anyone out there encountered a similar problem or can help?
A user is prompted on a form for a date to be used as a criteria for an SQL query e.g.
dtCriteria = Format(Me.Weeksaturday, "mm\/dd\/yyyy")
As a UK user I have converted the date to USA format as I understand SQL assumes this
However if the date is greater than 12 of the month e.g. 17 March 2001 it gets interpreted as 01-Mar-17
17 March 2000 worked fine using above methodology
Anyone out there encountered a similar problem or can help?