Recognize that how something's displayed to the user should not dictate
what's stored. It's not very difficult to show them Yes or No, but store -1
and 0 in the table.
If Arvin's suggestion doesn't work, you can use:
SELECT Count(*)
FROM MyTable
WHERE MyField = "Yes"
or
SELECT Sum(IIf([MyField] = "Yes", 1, 0))
FROM MyTable
--
Doug Steele, Microsoft Access MVP
(no private e-mails, please)
Tina Marie said:
Hi Arvin ... its not a field type yes/no ... its a combo box drop down
with
value list choices 'yes'/'no' ... they wanted the words, not the
checkmarks
... so count will not work (counts everything) ... going to try the
abs(sum)
function .. let me know if you know another way ...