I have a table with various information (company name, address, etc.) plus five check boxes. One or more of those check boxes may be ticked as it relays a type of status to the end user.
I have a query based on the table's five check boxes plus the Company Name and Record ID #. In the Criteria area I have the word True (no quotes) under each of the check boxes on seperate rows.
I have an unbound form (frmCheckboxes) with the 5 check boxes (same names). Within this form is a subform (sfCheckboxes_R esults). This subform is "supposed" to display all records with only the check boxes ticked on the form...
...However, I am getting all records with any check boxes ticked.
I have a terrible feeling there should be some And/If/or and Elses in the code some where. I just don't know how to write it.
Basically:
If CB1 and CB3 are checked then only display records in the subform who's CBs 1 and 3 are ticked. Else don't display anything (in the subform).
I'm lost on quering check boxes.
Please help.
Thank you and wishing everyone a VERY Happy, Healthy, and Prosperous New Year!
I have a query based on the table's five check boxes plus the Company Name and Record ID #. In the Criteria area I have the word True (no quotes) under each of the check boxes on seperate rows.
I have an unbound form (frmCheckboxes) with the 5 check boxes (same names). Within this form is a subform (sfCheckboxes_R esults). This subform is "supposed" to display all records with only the check boxes ticked on the form...
...However, I am getting all records with any check boxes ticked.
I have a terrible feeling there should be some And/If/or and Elses in the code some where. I just don't know how to write it.
Basically:
If CB1 and CB3 are checked then only display records in the subform who's CBs 1 and 3 are ticked. Else don't display anything (in the subform).
I'm lost on quering check boxes.
Please help.
Thank you and wishing everyone a VERY Happy, Healthy, and Prosperous New Year!
Comment