Re: Date Format Problem - mm.yy
- From: Marshall Barton <marshbarton@xxxxxxxxxx>
- Date: Thu, 14 Apr 2005 09:06:13 -0500
Gina wrote:
>I am storing MOT as a date field in a table. .... unfortunately when user
>types 04.05 ( meaning april 2005 - in Germany ) access creates stuff like
>04.05.2005 .....- 4th of may :(
>
>I am struggeling around on this date stuff already the whole morning ....
>and I can't see any land on this ...
>
>I changed the format of the field in the table to be mm.yy - without an
>input mask .....
>same in the form field ....
>
>when I click on the form field it shows the full date .... 04.05.2005 ...
>
>how can I avoid all this .... what I want is the user to be able to just
>type in month.year ... access to make the year out of the last 2 digits,
>store it exactly like this in the table, and the form should show it in the
>same format even I click on it!!
I'm with Brenden on how to avoid this issue, but it might
help if you understood how Access converts what you type to
a date value. It is pretty confusing because Access tries
too hard to make sense of a bunch of characters.
If the two values can be interpreted as a month and day
(e.g. 4-9), then Access will automatically supply the
current year (9 April 2005). If the month or day won't work
(e.g. 4-99), then Access uses the too large number as the
year and automatically supplies the first day of the month
(1 April 1999).
There are a bunch of other issues involving the delimiter
character, especially with different regional settings in
Windows.
Bottom line is use two text boxes or teach your users to
enter a four digit year.
--
Marsh
MVP [MS Access]
.
- References:
- Date Format Problem - mm.yy
- From: Gina
- Date Format Problem - mm.yy
- Prev by Date: Re: ActiveX-component msinet.ocx
- Next by Date: Re: Conditional formatting on a continuous form
- Previous by thread: Re: Date Format Problem - mm.yy
- Next by thread: Required Options
- Index(es):
Relevant Pages
|