In boolean logic, you want OR not AND.
If you want records that have a service date on Jan 1, 2006 or that have a
next service date on Jan 1, 2006 then you need an OR in boolean logic.
If you use AND then the record would have to have a service date of Jan 1,
2006 AND it would also have to have a Next Service date of Jan 1 2006 -
That is BOTH dates would have to be on Jan 1 2006.
Try using OR and see if that gives you the results you want.
Natasha said:
Hi
I have the criteria on the same line, i want an AND query. I want all the
records fron Service Date AND the Next Service Date. When i have the
criteria in both fields on the same line the query only brings me back
records from the Next Service Date. If i run the query with the criteria
in
one field it runs fine. I don't know why it doesn't show all records when
i
have criteria in both fields.
Natasha
:
Do you have the criteria set on the same line in the grid or on two
different
lines?
On the same line = AND query. Different lines = OR query.
So, if the dates entered were Today and Tomorrow the query would read
either:
Service Date between Today and Tommorow AND Next Service Date between
Today
and Tomorrow
Or
Service Date between Today and Tommorow OR Next Service Date between
Today
and Tomorrow
Lauri
:
I want to run a query that will bring up records using two date fields.
One
is the service date and the second is next service date. the criteria
i use
for both fields is Between [Forms]![frmReports]![txtdatefrom] And
[Forms]![frmReports]![txtDateTo]. The query doesn't work for me. Does
anyone know how i do this.
Natasha