K
klr
I have a report based on a table, and want to set up a query to limit
the records pulled through.
The report will be run at the beginning of the month, and needs to pull
through all records from previous month based on date field - I am
using Between DateSerial(Year(Date()),Month(Date())-1,1) And
DateSerial(Year(Date()),Month(Date()),0) which works fine.
I now have 3 other fields entitled IntNow; IntFut and IntRec. One or
more of these fields may be populated therefore the query needs to look
at these 3 fields to see if they are populated and if the record is
dated last month then it is pulled through to the report.
The query is structured so that the date field appears AFTER IntNow;
IntFut and IntRec which have Is Not Null in the Criteria field (as Or),
and the expression for the date field is entered in all criteria rows.
The query seems to function however I am finding that 2 records are
being pulled through that although dated last month, have nothing in
the IntNow; IntFut and IntRec fields.
I can't understand why this should be happening. Any ideas gratefully
received.
the records pulled through.
The report will be run at the beginning of the month, and needs to pull
through all records from previous month based on date field - I am
using Between DateSerial(Year(Date()),Month(Date())-1,1) And
DateSerial(Year(Date()),Month(Date()),0) which works fine.
I now have 3 other fields entitled IntNow; IntFut and IntRec. One or
more of these fields may be populated therefore the query needs to look
at these 3 fields to see if they are populated and if the record is
dated last month then it is pulled through to the report.
The query is structured so that the date field appears AFTER IntNow;
IntFut and IntRec which have Is Not Null in the Criteria field (as Or),
and the expression for the date field is entered in all criteria rows.
The query seems to function however I am finding that 2 records are
being pulled through that although dated last month, have nothing in
the IntNow; IntFut and IntRec fields.
I can't understand why this should be happening. Any ideas gratefully
received.