Re: Problem with Multiple OR
- From: "jc.vega via AccessMonster.com" <u25138@uwe>
- Date: Fri, 11 Aug 2006 04:10:06 GMT
Basically there are 10 checkbox controls on my form one to check if something
was sent and one to check if it was received. I needed a query that will show
every record that has a check on Sent and not one received, by a specific
date.
Adding the parentheses didn't help. I actually have tried it every which way
I could think of.
Anyone else have any ideas?
Douglas J. Steele wrote:
What exactly are you looking for? And has a higher precedence than Or. You
might need to include some parentheses:
WHERE (Fields.fLabsCutoff<#12/18/2006# And (Fields.fCBC=Yes) And
(Fields.fCBCReceived=No))
OR ((Fields.fChem7=Yes) And (Fields.fChem7Received=No))
OR ((Fields.fXRAY=Yes) and (Fields.fXRAYReceived=No))
That will retrieve rows where the first line is true or the second line is
true or the third line is true.
I am trying get a result using the following WHERE statement, which doesn't[quoted text clipped - 9 lines]
work - or should I say, doens't give the correct result.
Any help given is much appreciated.
--
Message posted via http://www.accessmonster.com
.
- References:
- Problem with Multiple OR
- From: jc.vega via AccessMonster.com
- Re: Problem with Multiple OR
- From: Douglas J. Steele
- Problem with Multiple OR
- Prev by Date: Re: 45 Days between multiple occurrences. My brain may explode! (help)
- Next by Date: Re: 45 Days between multiple occurrences. My brain may explode! (help)
- Previous by thread: Re: Problem with Multiple OR
- Next by thread: Re: Problem with Multiple OR
- Index(es):
Relevant Pages
|