A
Allen Browne
Hi Derek.
It might help to understand how Access works, so you can then choose the
best way for you to work.
Internally, Access stores date/time fields as real numbers, where the
integer part represents the date, and the fractional part the time. There is
therefore no such thing as a date/time value in Access that has no day: the
number Access stores always has a full date and time, regardless of the
formatting you specify to tell Access how to display the value.
If you want something different, you have several choices, such as:
a) Use two number fields:
TheMonth Number (Integer) Validation Rule: Between 1 And 12
TheYear Number (Integer) Validation Rule: Between 1980 And 2999
b) Use a date/time field, but on your form interface it with a pair of
unbound text boxes populated in Form_Current and written in
Form_BeforeUpdate to the field using whatever day you want to assume (such
as 1st or last of month.)
c) Use a text field (not recommended if you need to do *any* searches or
criteria.)
It might help to understand how Access works, so you can then choose the
best way for you to work.
Internally, Access stores date/time fields as real numbers, where the
integer part represents the date, and the fractional part the time. There is
therefore no such thing as a date/time value in Access that has no day: the
number Access stores always has a full date and time, regardless of the
formatting you specify to tell Access how to display the value.
If you want something different, you have several choices, such as:
a) Use two number fields:
TheMonth Number (Integer) Validation Rule: Between 1 And 12
TheYear Number (Integer) Validation Rule: Between 1980 And 2999
b) Use a date/time field, but on your form interface it with a pair of
unbound text boxes populated in Form_Current and written in
Form_BeforeUpdate to the field using whatever day you want to assume (such
as 1st or last of month.)
c) Use a text field (not recommended if you need to do *any* searches or
criteria.)