Input Mask MMM-YYYY

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a field on a table which has a Data Type of Date/Time, however I only
need to save the Month and Year, hence what input mask can I use to force
this please?
 
I never use input masks for dates. I find them more trouble than they're
worth. You can train your users to enter the date as feb/2006. Access will
assume the 1st as the day part of the date. Be careful though. Entering
feb/06 would result in 6 being interpreted as the day and so the date would
be feb/6/2006.

I would stick with a field defined as a date data type even if I only wanted
to enter month and year and allow the day to default to 1. The date field
will sort properly, it will be validated as you enter it, you can use it
with a crosstab, and all the date functions work with it. If you go with a
text field, you're on your own.
 

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


Back
Top