Hi all,
Have a question regarding Dates in Access
O have a form and users have been inputting dd/mm and it has been defaulting
to the Year 2029
Is this due to Regional Settings (using XP Pro) ?
What is the best way to handle dates in forms so that it doesn't matter what
the users Regional Settings are set at ?
thanks in advance,
Adam
Rick Brandt - 05 Apr 2005 03:19 GMT
> Hi all,
>
[quoted text clipped - 7 lines]
> What is the best way to handle dates in forms so that it doesn't
> matter what the users Regional Settings are set at ?
The best way to handle dates is to have users enter full dates meaning a month,
day, and a four digit year. You can explicitly set formatting options to
*display* dates in a way that ignores regional settings, but I don't know of a
way to manipulate the assumptions Access will make when only a partial date is
entered.
You could use an unbound control for data entry and use AfterUpdate code to take
that entry and produce a date value for insertion into the table and then have
complete control over how that conversion is done.

Signature
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Mike Painter - 05 Apr 2005 05:24 GMT
>> Hi all,
>>
>> Have a question regarding Dates in Access
I've been using Access since it first came out and it has NOT ONCE helped me
get a date.
John Vinson - 05 Apr 2005 06:50 GMT
>Hi all,
>
[quoted text clipped - 4 lines]
>
>Is this due to Regional Settings (using XP Pro) ?
In my experience, it enters the current year (by the system clock) if
you just type days and months. Do you mean that if you type
04/05
into a textbox bound to a Date/Time field it stores April 5, 2029? I'd
expect it to store April 5, 2005.
>What is the best way to handle dates in forms so that it doesn't matter what
>the users Regional Settings are set at ?
Enter dates unambiguously, e.g. type in
05-Apr-2005
John W. Vinson[MVP]