Date format with input masks

S

Sue

I have created a table with a date field that has an input mask of
99/99/00;;_.

When I put in the year date of 1945, Access makes it into 2045. Is there a
way to fix this so that I can put in dates of 1900 and 2000?

Thanks so much!
 
L

Larry Linson

Sue said:
I have created a table with a date field that has an input mask of
99/99/00;;_.

When I put in the year date of 1945, Access makes it into 2045. Is there a
way to fix this so that I can put in dates of 1900 and 2000?

Your mask only allows two-digits for the year, so Access assumes the rest.
Change it to accept 4 digits for the year. In fact, one of the few uses I
have made of input masks (they are cumbersome unless the user is tabbing
between fields) was in Y2K remediation code, to _force_ four digit years.

Larry Linson
Microsoft Access MVP
 
S

Sue

Thank you very much! I will try it.

Larry Linson said:
Your mask only allows two-digits for the year, so Access assumes the rest.
Change it to accept 4 digits for the year. In fact, one of the few uses I
have made of input masks (they are cumbersome unless the user is tabbing
between fields) was in Y2K remediation code, to _force_ four digit years.

Larry Linson
Microsoft Access MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top