Re: Unsure why VBA thinks dates entered are greater than Now() - when they are not?



"SmartbizAustralia" <tom@xxxxxxxxxxxxxxx> wrote

THe problem is that Access only thinks in American
format but stores it anyway you want.

Actually, that is not the case... all date/time values in Access are stored
the same way, regardless of the Regional Settings -- that is, a date/time
field or variable is the equivalent of a Double Precision Floating Point
value with the integral (or whole number) portion representing days since
Dec. 30, 1899 and the fractional portion representing time since midnight.

The Regional Settings only affect how date data you enter is interpreted and
how stored date data is displayed.

The problem you encounter is that there are some situations in Access and
the Jet database engine which ignore the Regional Settings.

(YMMV on date data kept by other applications or by Windows itself.)

Larry Linson
Microsoft Access MVP


.



Relevant Pages

  • Date format
    ... I have created a list in our portal and have a field that is date/time. ... I have set the regional settings to UK but still get dates displayed in ... Rgds, robc. ...
    (microsoft.public.sharepoint.portalserver)
  • Re: Formatting the date regardless of regional settings
    ... format YYYY.MM.DD regardless of the regional settings: ... echo Todays date: %today% ... -- torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: ...
    (microsoft.public.win2000.cmdprompt.admin)