L
Lewis M
In a query and in a report, I tried to use two different criteria as a filter
for previous month's records.
Filter 1:
Year([FieldName]) = Year(Now()) And Month([FieldName]) = Month(Now()) -1
Filter 2:
Between DateSerial(Year(Date()), Month(Date())-1,1) And
DateSerial(Year(Date()),Month(Date()),0)
But in both cases, no records were returned although there are records from
the previous month. I am using Access 2003 with SP2. Do you know if I should
use a different filter or correct the one I am trying to use? Thanks.
for previous month's records.
Filter 1:
Year([FieldName]) = Year(Now()) And Month([FieldName]) = Month(Now()) -1
Filter 2:
Between DateSerial(Year(Date()), Month(Date())-1,1) And
DateSerial(Year(Date()),Month(Date()),0)
But in both cases, no records were returned although there are records from
the previous month. I am using Access 2003 with SP2. Do you know if I should
use a different filter or correct the one I am trying to use? Thanks.