dragonfly0802
Registered User.
- Local time
- Today, 03:18
- Joined
- Jan 28, 2010
- Messages
- 13
Hello! I have a form that allows users to check boxes to select the Reports they would like to run. The checkboxes are named as follows:
chkReport1
chkReport2
chkReport3
chkReport4
I wrote a Macro that works perfectly to run the reports if the check box is selected. (there is a run button on the form that when clicked launches the macro).
Other users of the database accidentally leave the boxes unchecked sometimes so it has been requested that I include a Message box so if none of the checkboxes are selected, it returns a message box.
I can successfully test one box, when I insert the condition [chkReport1]=0 it works (the message box displays) however when I try to test all the boxes using the following condition nothing happens. I have no vba experience so I would need to know if there's a way to do this in a macro.
[chkReport1]=0 And [chkReport2]=0 And [chkReport3]=0 And [chkReport4]=0
Thank you so much for your time!!!
chkReport1
chkReport2
chkReport3
chkReport4
I wrote a Macro that works perfectly to run the reports if the check box is selected. (there is a run button on the form that when clicked launches the macro).
Other users of the database accidentally leave the boxes unchecked sometimes so it has been requested that I include a Message box so if none of the checkboxes are selected, it returns a message box.
I can successfully test one box, when I insert the condition [chkReport1]=0 it works (the message box displays) however when I try to test all the boxes using the following condition nothing happens. I have no vba experience so I would need to know if there's a way to do this in a macro.
[chkReport1]=0 And [chkReport2]=0 And [chkReport3]=0 And [chkReport4]=0
Thank you so much for your time!!!