"John M" <jo**@jmawer.demon.co.uk> wrote in message
news:cn*******************@news.demon.co.uk...
Hi,
I have a table in which all filelds are 'Yes/No'. I want to select all
records with an occurence of 'Yes' in any one of those fields. Rather
than
a long winded if and or statement, which would have to be modified if I
added fileds later, is there a simple way of saying include the record if
any field is 'Yes'?
Depending in how many of these columns you have, you could use a single
bitmasked column of data type Int (Long) to represent all the yes / no
options. There's a very good description of how this works at
http://www.mvps.org/access/general/gen0038.htm
Then you can just test for the case when the value > 0