H
HEG
I set up a date field on a table and a form to show the 3-
character month and 4-character year, using the following
format:
Format: mmm yyyy
Input Mask: >L>LL\0000;0;_
Since most entries to this field are the same and indicate
the previous month I set the default for this field on the
form as:
=DateAdd ("m", -1, Now())
The correct date seems to appear on the form (as Mar
2004), but the table is actually storing a General Date
(mm/dd/yy h:mm:ss AM (or PM)).
The query that drives the report that needs this data has
a parameter asking for the month and year of the report,
and expects to find (mmm yyyy). When the query or the
report is generated the results are empty. If I remove the
parameter they return all records.
Is there a better way to structure the default value or is
there some other better solution?
character month and 4-character year, using the following
format:
Format: mmm yyyy
Input Mask: >L>LL\0000;0;_
Since most entries to this field are the same and indicate
the previous month I set the default for this field on the
form as:
=DateAdd ("m", -1, Now())
The correct date seems to appear on the form (as Mar
2004), but the table is actually storing a General Date
(mm/dd/yy h:mm:ss AM (or PM)).
The query that drives the report that needs this data has
a parameter asking for the month and year of the report,
and expects to find (mmm yyyy). When the query or the
report is generated the results are empty. If I remove the
parameter they return all records.
Is there a better way to structure the default value or is
there some other better solution?