Question : Boolean as criteria in Access 2003 query

The question is so easy but i can't seem to find the solution

I'll ask the question following an example

example:

Table "list" has 2 properties: a text field "description" and a boolean (Yes/No)-Field named "show".
I want to make a Query that shows all records where the "show" True;

basically this is what the query should look like:

select list.description
from list
where ;


now what is between < and > doesn't work and i tried like everything i can think of.

what i tried:
list.show = -1                                doesnt't work
list.show = TRUE                           doesn't work
list.show = 'Yes'                            doesn't work
more thing like 'Y', Yes, Y, 'True', 'T'
none of those work and it's driving me insane

any ideas?

Answer : Boolean as criteria in Access 2003 query

You could try

SELECT besluiten.besluitnr, besluiten.wet_kb, besluiten.omschrijving
FROM besluiten
WHERE Nz(besluiten.bo) <> 0
ORDER BY besluiten.besluitnr;

or (getting sillier)
WHERE CBool(Nz(besluiten.bo)) <> 0

But the query will run progressively slower.
Best to have the table definition spot on.
Random Solutions  
 
programming4us programming4us