Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / April 2005

Tip: Looking for answers? Try searching our database.

Dates and Access

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
acs68 - 05 Apr 2005 01:58 GMT
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]    
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.