date parts

B

Bibi

I am designing a data base to track renovations – the user is not interested
in the date of a renovation – only the month and year – is there a way I can
store just the month and year in one date field, with the current month and
year as the default value?
TIA
Bibi
 
A

Allen Browne

A date/time field must have a day. Perhaps you could use the first of the
month, and format it as mmm-yyyy.

You could put some code into the Load event of your form to set the Default
Value of a text box to DateSerial(Year(Date), Month(Date),1) or Date -
Day(Date) + 1.
 

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

Top