The code is part of an expression I put in the control source of a report as
a filter....the report was correct with the original "dateadd" component
until we began adding dates this month...then the report returned dates from
january 2004 AND 2005. I cut out the "dateadd"component and pasted the
"dateserial" component in it's place. Obviously something incredibly simple
is flying over my head.
without seeing yo whole expression I can't help:
for example:
month(date()) gives you a number
DateSerial (....) gives you a Date
dateserial(...)=Dateserial(....) gives you a boolean (true or false)
your first post:
month([current innoc]) = Month(DateAdd("m",-12,Date()))
your second post:
month([current currentinnoc]) = Month(DateAdd("m",-12,Date()))
notice the field name difference
I have also problems with the dateserial-function in the filter
property so use:
Month([aDat])&Year([aDat]) = Month(Date()) &Year(Date())-1)
but exchange [aDat] with your fieldName