S
ScottS
Hello:
I'm not sure is this is the right category for this question so I would
appreciate it if someone could direct me to the correct one.
I am working on a database for use in the US and UK. During testing using
UK Regional Settings I ran into some problems with dates that are used in SQL
statements in my code. Here is one that I'm trying to resolve now.
I have the following formula in a SQL statement used for a rowsouce in a
list box.
WeekdayName(WeekDay([SalesDate],True))
With US Regional Settings the weekday name displays correctly in my listbox
along with the date and other columns. When I switch to UK Regional Settings
the weekday is one day off. For example Dec 15, 2006 (15/12/2006) shows up
as Sat, when it should be Fri.
Any ideas or better ways to handle dates in VBA would be appreciated.
Thanks
I'm not sure is this is the right category for this question so I would
appreciate it if someone could direct me to the correct one.
I am working on a database for use in the US and UK. During testing using
UK Regional Settings I ran into some problems with dates that are used in SQL
statements in my code. Here is one that I'm trying to resolve now.
I have the following formula in a SQL statement used for a rowsouce in a
list box.
WeekdayName(WeekDay([SalesDate],True))
With US Regional Settings the weekday name displays correctly in my listbox
along with the date and other columns. When I switch to UK Regional Settings
the weekday is one day off. For example Dec 15, 2006 (15/12/2006) shows up
as Sat, when it should be Fri.
Any ideas or better ways to handle dates in VBA would be appreciated.
Thanks