G
Guest
I want to use the year() function to compare the year for an entered date
with another year (integer) value. No matter how I enter it, the year
function produces a type mismatch error. Even this, straight from the help
example:
dim yr as variant (or integer)
yr = Year(#04/01/2007#)
or Yr = year(date()) or yr = year(cdate("04/01/2007")) or yr =
Year(me.[date]) where [date] is a date field on the current form.
What am I missing?
DM
with another year (integer) value. No matter how I enter it, the year
function produces a type mismatch error. Even this, straight from the help
example:
dim yr as variant (or integer)
yr = Year(#04/01/2007#)
or Yr = year(date()) or yr = year(cdate("04/01/2007")) or yr =
Year(me.[date]) where [date] is a date field on the current form.
What am I missing?
DM