To further illustrate (using one of my own tables), if you place your
criteria in the same row, the underlying SQL is going to look like:
SELECT tblDevProcess.startTime, tblDevProcess.endTime, tblDevProcess.Remarks
FROM tblDevProcess
WHERE (((tblDevProcess.startTime)>=Date()-20)) AND (((tblDevProcess.endTime)
... with the AND meaning that all criteria must be met.
Conversely, placing the criteria in successive rows ( as Karl showed), the
underlying SQL will look like:
SELECT tblDevProcess.startTime, tblDevProcess.endTime, tblDevProcess.Remarks
FROM tblDevProcess
WHERE (((tblDevProcess.startTime)>=Date()-20)) OR (((tblDevProcess.endTime)
... with the OR meaning that a record will be returned if either of the
criteria are met.
Best Wishes - Bob
KARL said:
Put the criteria in a separate row for each different field - will look like
this --
Field1 Field2 Field3
Date()
Date()
Date()
One thing to note is that Date() contains only the date so if your fields
have the date and time there will not be a match.
I should note that when I apply this criteria by itself to any single field,
it works fine. It is only when I try to apply it to multiple fields that I
[quoted text clipped - 14 lines]
it will not work for each field (only the first one with this criteria). Any
assistance would be appreciated.