If 3 check boxes are checked =1

G

Guest

How would I go about writing an IF statement for this...I have 3 check boxes
on a report, if all 3 boxes are checked per record I need it to equal 1. How
would I write the If statement in unbound text box for that? CB1,CB2 and CB3
are all checked then the value equals 1.

Thanks
 
R

Rick Brandt

Marc said:
How would I go about writing an IF statement for this...I have 3
check boxes on a report, if all 3 boxes are checked per record I need
it to equal 1. How would I write the If statement in unbound text
box for that? CB1,CB2 and CB3 are all checked then the value equals
1.

Thanks

IIf(CB1 = True And CB2 = True And CB3 = True, 1, 0)

You didn't say what you wanted the value to be when the three CheckBoxes are
NOT all true. Substitute what you want for the zero above.
 
G

Guest

This is exactly what I needed. Thank you!!!

Rick Brandt said:
IIf(CB1 = True And CB2 = True And CB3 = True, 1, 0)

You didn't say what you wanted the value to be when the three CheckBoxes are
NOT all true. Substitute what you want for the zero above.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top