|
-
Apr 13th, 2002, 07:14 AM
#1
Thread Starter
Hyperactive Member
Formatting a user settings date to a system settings date for Access
Hi,
I have been trying to look for this on the forums somewhere, but to no avail.
I'm sure this is a common problem for people having to write code to support different locales using Access.
When looking for records (ie when performing an SQL statement with the 'WHERE' in it, Access only returns the system settings locale (ie the US one where short date is read as mm/dd/yyyy), but any date we enter using Date or Now uses the user settings date. Forcing a Format of Now to mm/dd/yyyy does not work as it passes the user settings date.
My question is then, how can I force a date to take the system settings date so no matter what date I have it will always be Access friendly.
E.g: Here's an example
1) User settings short date: d.M.yy
2) Format (Now, "mm/dd/yyyy") returns
8.4.02 and NOT 04/08/2002, which is what Access expects.
Date$ reads the system settings date but can it be used somehow to force a user settings date ???
This is urgent. Many thanks.
Mike
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|