Sorting out a Yes from a toggle field

J

Janmck

I have a query that has a "yes" or "No" toggle field and I want my query to
not include the yeses so I can mail only to the no's. I have tried putting
<>Yes in the Query and tried typing in NO.


I have searched and read and cannot find an answer to what I know must be
very simple and basic. Please help!
JanMck
 
J

Jeanette Cunningham

Hi Janmck,
use True for yes and False for No.

Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia
 
J

John Spencer MVP

What is the type of field that the Toggle Control Frame is attached to? Is it
a Yes/No (boolean) field or is it a number field? Usually toggle fields will
return a number from 1 to n. So I suspect that you need to use either 1 or 2
as the value you should be looking for to filter the records.

Try entering = 2 as the criteria and see if you get the correct records. If
not, try entering <> 2 (or enter 1 if you prefer) and see if that gives you
the correct records.

John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Assign a value of 1 for Yes 10
Excel Count from last specific text 3
add yes/no's in access database 14
Toggle Button 5
query design help 7
Access Dcount (multiple criteria) 3
Count Yes/No field in report? 2
Calculation On a Form 5

Top