Re: Date in criteria not processing all date records
- From: "Rick Brandt" <rickbrandt2@xxxxxxxxxxx>
- Date: Thu, 17 Apr 2008 06:31:36 -0500
Dr Al wrote:
I have a table with four date fields, some of which may not be filled
in based on our data entry needs. I have a criteria set as <date()-180
which is supposed to pull dates older than 180 days ago. The problem
is that when I use that criteria for all four fields I am not getting
the expected results.
I am trying to find out from this query is the date in date field one
is older than 180, same thing for the other three date fields. For
some reason it is not picking up all the older than 180 records. It
seems to be working fine for the first date field, after that it is
dropping relevant records.
Can someone please explain how to get the criteria in the query to
produce the results that I am looking for.
Thanks
If you have the criteria under all the fields on the same row in the query
designer then you will only get rows where ALL of the dates are older than
180 days. Is that what you want?
If you want all rows where ANY of the dates is older than 180 days then the
criteria need to be on separate rows.
Same row = AND
Separate rows = OR
--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
.
- Follow-Ups:
- Re: Date in criteria not processing all date records
- From: paii, Ron
- Re: Date in criteria not processing all date records
- References:
- Date in criteria not processing all date records
- From: Dr Al
- Date in criteria not processing all date records
- Prev by Date: Date in criteria not processing all date records
- Next by Date: #####SOUTH INDIAN SEX GIRLS SEX######
- Previous by thread: Date in criteria not processing all date records
- Next by thread: Re: Date in criteria not processing all date records
- Index(es):
Relevant Pages
|