473,508 Members | 2,130 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Conflict with short date and default input mask

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
1 12217
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
7812
by: Jay | last post by:
I previously posted this question under Visual Basic newsgroup, but was advised to re-post here. I'm hoping someone can help me solve an issue I'm having with VB.Net and Access 2000. Here's...
1
6258
by: Miranda Evans | last post by:
In my application, a text box control resides in a form. The text box control is unbound, but--assuming all edits are passed when the user click a command button on the form--the contents of the...
0
2135
by: Wayne Aprato | last post by:
My computer is using the dd/mm/yyyy date format. Is there a simple input mask for a date field that will accept just the month and year eg. 08/04 and maybe default the day to 01? I presume that...
3
3653
by: Jim Vincent | last post by:
Greetings All, Hope you can help me out here. I'm trying to import from Excel but the default date in Excel is in this format: 12/2/2005 12:49:49 AM (for example). What input mask can I...
2
4486
by: jmarr02s | last post by:
I need my Date field to possess the following format: Jan-05-1999 How do I change the Date Format/Input Mask to accomplish this? Thanks! John
3
7279
by: xian2 | last post by:
Hi, I am trying to validate a credit card expiry date so it is no later than three years ahead of today's date. I am OK with the validation as far as Date()+1096 which is the maximum number of days...
7
1962
by: Ron | last post by:
Hi All (yet again today...) Input clerk gets to "date of order" control on order form and is supposed to enter the date of the order. I've got that defaulting to today's date, which sounds...
7
4336
abouddan
by: abouddan | last post by:
Hi all I am trying to insert in my table "Table1" a new record. This table contains a field "cDate". When using a form to insert in that table the textbox "txtDate' is filled automaticly (row...
1
1764
by: BoxTop | last post by:
Here is an Access 97 problem that's been bugging me for years. On a form I set up a date/time field. I set up the format to be dd/MM/yy hh:nn. I set the input mask to be ##/##/##\ ##:##;0;_ All...
0
7225
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7123
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7383
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5627
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5053
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4707
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3194
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3182
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1557
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.