R
Ray2216
Guest
In a database that used to be run solely on computers with US date format, there are pieces of code like this:-
It works fine on US dates. Now we have established some offices in regions that use UK date format. In these regions, the code sometimes works but, at other times, doesn't.
How should I modify the code so that it will work in both US and UK date formats?
Any help is greatly appreciated.
Code:
" WHERE [DateField] Between #" & Me.txtStartDate _
& "# And #" & Me.txtEndDate & "#;"
It works fine on US dates. Now we have established some offices in regions that use UK date format. In these regions, the code sometimes works but, at other times, doesn't.
How should I modify the code so that it will work in both US and UK date formats?
Any help is greatly appreciated.