query using 'is null' and ' or 'is not null' with checkboxes

G

Guest

Lets say my table has fields 'text name', 'text class', 'check box enrolled'
When I create a query with 'criteria' in the check box section stating 'is
not null' this works fine, I get my answser, when I use 'is null' I get
nothing

I'ts been a few years since I've had to use access, maybe I'm unaware of
some upgrades, and new tricks....any help
Cheryl
 
J

John W. Vinson

Lets say my table has fields 'text name', 'text class', 'check box enrolled'
When I create a query with 'criteria' in the check box section stating 'is
not null' this works fine, I get my answser, when I use 'is null' I get
nothing

That's because a Yes/No field cannot ever be NULL: it can be true or false,
only.

You can use an Integer number field with a checkbox as a control, storing -1
for True, 0 for False, and null for undetermined.

John W. Vinson [MVP]
 

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

Top