fiogf49gjkf0d I think what you are seeing is a form loading issue. checkboxes are notorious for that, given their state changes on loading.
So, if you open the form and, on the WhenChange add an option like this:
<p>If Not Form.IsReadingSetButtonChkBoxState ' Do your stuff
End If
Where "Form" is the main form container name. So, you would do something like:
<p>Sub SetButtonChkBoxState
Select Case btnName.Enabled
chk1.Enabled = btnName.Enabled chk2.Enabled = btnName.Enabled
End Case
End Sub
This will then set the checkboxes to Enabled/Disabled based on state of button. The Click event of button calls the same routine.
|