Checkboxes - at least 1 MUST be...

Local time
Today, 23:58
Joined
Aug 3, 2005
Messages
66
Hi,

The application and form is setup so that the user can not close the form unless the custom 'SAVE' button is clicked.

'Save" button does various checks for valid field entries.

I have 3 seperate (not grouped) check boxes (0=not checked, -1=checked)

The user can check any one or two or all three checkboxes, but MUST check at least one of them. I cannot force the user to check a SPECIFIC box.

With the OnClick event of the 'save' button, I need to verify that at least one of the (non-grouped) boxes are checked.

Not sure what to do here. Any advice ?

Thank you.
Jamie.
 
check 'em.
Code:
if me.chk1 = 0 and me.chk2 = 0 and me.chk3 = 0  then
    msgbox "check one"
    exit sub
end if
 
check 'em.
Code:
if me.chk1 = 0 and me.chk2 = 0 and me.chk3 = 0  then
    msgbox "check one"
    exit sub
end if


so simple...

Thank You !
 

Users who are viewing this thread

Back
Top Bottom