Find unchecked checkboxes

  • Thread starter Thread starter EllenM
  • Start date Start date
E

EllenM

Hello,
I have a table with text field and 5 checkboxes in Access 2003. I'd like to
find all the records with all the checkboxes unchecked.

Thanks in advance for your help,
Ellen
 
Try this --
SELECT [TextBox]
FROM YourTable
WHERE [Check1] + [Check2] + [Check3] + [Check4] + [Check5] = 0;
 
SELECT CheckBoxes.*
FROM CheckBoxes
WHERE ([YesNo1]+[YesNo2]+[YesNo3]+[YesNo4]+[YesNo5]) = 0 ;

Put in the correct table and field names.
 
Back
Top