Simple Query

P

Paul Scott

Hi all,

I'm using Access 2002 and Sql 2000. I have a form that's
has a check box. I'm trying to create a query that will
display all the false records. I've tried everything I
know to put in the Criteria but nothing works.

Any help would be appreciated.

Thanks and have a good day,

Paul
 
J

Jeff Boyce

Paul

"False" in either Access/Jet or SQL Server is "0". What value are you using
in your query's criterion for this field? I note that you mention a form
with a checkbox, but don't mention if there's actually a table field behind
it with the True/False value.
 
W

Wayne Morgan

Paul,

In addition to Jeff's questions, are you sure the values are False? If you
haven't set a default value of False and the user simply doesn't make a
selection in the checkbox, then the value is likely to be Null, not False.
 
M

Michel Walsh

Hi,

with Jet:

SELECT * FROM myTable WHERE NOT checkControlField


with MS SQL Server (works also for Jet):

SELECT * FROM myTable WHERE checkControlField = 0




Hoping it may help,
Vanderghast, Access MVP
 
P

Paul Scott

It was the 0. I don't know why I didn't think of 0 or 1.
I think I need a vacation.

Thanks for the speedy replies.

Have a good one,

Paul
 

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