Yes/ No sorting

  • Thread starter Thread starter CGirl
  • Start date Start date
C

CGirl

Guest
New to Access and was wondering if I had 3 yes/no questions in a query, can I pull up the records if any of these =true?
 
To pull out records if they are True (i.e. Ticked) use: Yes, True, On or -1 as criteria.

For false use: No, False, Off or 0.

HTH
 
I see what you mean. I need for only 1 out of the 3 to be true. The way I have it, all of them have to be true before it pulls the record up. I have each one =yes, but as long as one of the values are true, then I need to know it. Is there such a thing as an OR statement?
 
To me, it sounds as though you would better off with an "IF" statement rather than an "OR" statement in your query
Example:
Show FIELD1 IF xxx=True...
and include each of the three fields in the query. Does that make sense??

HTH too-
 
CGirl

Can you just not add the True criteria to the three seperate rows of the grid so:

Column A is true, OR Column B is True, OR Column C is True?

Graham
 
If you place the criteria all on the same row of your query, Access requires them ALL to be true. If you place them staggered on different rows, ANY can be true. Different combinations form different logical statements (check the SQL view if you want to see this in a slightly more textual format).
 

Users who are viewing this thread

Back
Top Bottom