databasedonr
Registered User.
- Local time
- Today, 17:14
- Joined
- Feb 13, 2003
- Messages
- 163
Greetings:
I have developed a database that is mostly working -- in Access2000 running on W2K.
The database allows users to select a vehicle from a pool and book that vehicle for certain dates.
The issue I have is with the date settings and the regional settings on the computers. About 40 of the users in my department use an application that requires a specific date setting -- it is yyyy/mm/dd. The rest of us (and esp. my database app) use either mm/dd/yyyy or dd/mm/yyyy.
The users enter a date on a form that is configured as Medium date, and I take this and write the entered date into a variable, and then call this variable to write the date into a SQL insert statement when the vehicle is booked.
It works perfectly for everyone except the users with the regional settings for yyyy/mm/dd.
Is there any way I can grab the regional settings, and if the users has the "bad" setting, run a separate query to accommodate the date format? The problem is compounded, as I also check the table where the cars are checked out when looking at the vehicles available for booking - and if the dates aren't read correctly, then I can have cars reporting as available when they are already booked out.
Any help is gratefully accepted.
Thanks in advance.
I have developed a database that is mostly working -- in Access2000 running on W2K.
The database allows users to select a vehicle from a pool and book that vehicle for certain dates.
The issue I have is with the date settings and the regional settings on the computers. About 40 of the users in my department use an application that requires a specific date setting -- it is yyyy/mm/dd. The rest of us (and esp. my database app) use either mm/dd/yyyy or dd/mm/yyyy.
The users enter a date on a form that is configured as Medium date, and I take this and write the entered date into a variable, and then call this variable to write the date into a SQL insert statement when the vehicle is booked.
It works perfectly for everyone except the users with the regional settings for yyyy/mm/dd.
Is there any way I can grab the regional settings, and if the users has the "bad" setting, run a separate query to accommodate the date format? The problem is compounded, as I also check the table where the cars are checked out when looking at the vehicles available for booking - and if the dates aren't read correctly, then I can have cars reporting as available when they are already booked out.
Any help is gratefully accepted.
Thanks in advance.