Automatically finnishing the date in a form

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

Guest

Is it possible to have the year completed automatically in a form, so that
you can just select "6" and the date is entered as "2006"?

Thanks so much for your help
 
Is it possible to have the year completed automatically in a form, so that
you can just select "6" and the date is entered as "2006"?

Thanks so much for your help

Access defaults to the current year. Just don't put any input mask on
the date field textbox at all; if you type 8/25 it will fill in
08/25/2006 automatically.

If you're using a Date/Time field to store ONLY a year... don't. A
date/time field stores a precise moment of time, not a whole year. You
could use an Integer number field with a default value property of
Year(Date()) to automatically fill in the current year.

John W. Vinson[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

Back
Top