By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,652 Members | 1,275 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,652 IT Pros & Developers. It's quick & easy.

Conflict with short date and default input mask

P: n/a
Hi,

I created a short date field. The format is dd/mm/yyyy when displayed.
The input mask is set to 99/99/00;0 (default, I didn't type anything).
If I edit an existing date, say change 12/14/2007 to 12/15/2007, I get
an error "the value you entered isn't appropriate for the input mask."
I have to delete the "20" in the year to get it accepted, and then it
puts the 20 right back. (I have the field set to required.)

I changed 99/99/00;0 to 99/99/0000;0 and it solved the editing
problem. Why did they conflict in the first place? What I really want
is actually a 2 digit year. Is there a way to set it that way? (and
keeping it a date field - I use that value and don't want to deal with
converting a text string to a date).

Thanks

Nov 24 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
If this is a Date/Time field, I suggest you remove both the Format and the
Input Mask from the field.

The input mask serves no purpose for dates, other than to really frustrate
good data entry operators who know they can enter many dates with only 3 or
4 keystrokes, such as:
3/5
Access interprets that as the current year, and determines which is one is
the month and which is the day from your Control Panel settings.

If you really want a 2-digit year, go to the Windows Control Panel |
Regional Settings, and customize Short Date so it has only yy rather than
yyyy. I don't recommend this, as it masks problems where the year is wrong.
This introduces long term problems, and saves no time at all for entering
dates in the current year.

I didn't follow your example, since you indicated you wanted dmy formatting,
but the example dates were mdy. In any case, this may help:
International Date Formats in Access
at:
http://allenbrowne.com/ser-36.html

Another alternative is to offer a little pop-up calendar for users to select
a date:
http://allenbrowne.com/ser-51.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

<Do**@NoEmail.comwrote in message
news:uf********************************@4ax.com...
Hi,

I created a short date field. The format is dd/mm/yyyy when displayed.
The input mask is set to 99/99/00;0 (default, I didn't type anything).
If I edit an existing date, say change 12/14/2007 to 12/15/2007, I get
an error "the value you entered isn't appropriate for the input mask."
I have to delete the "20" in the year to get it accepted, and then it
puts the 20 right back. (I have the field set to required.)

I changed 99/99/00;0 to 99/99/0000;0 and it solved the editing
problem. Why did they conflict in the first place? What I really want
is actually a 2 digit year. Is there a way to set it that way? (and
keeping it a date field - I use that value and don't want to deal with
converting a text string to a date).

Thanks
Nov 24 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.