This simply sets the Boolean variable, showInfo
, in our class to true or false. When the user checks the check box, we set the displayMoveComplete
property to true (the value of the check box). Now when the user moves to the next record, our message box in the class will be displayed.
11. Add this code to the form's Check1_Click
event:
Private Sub Check1_Click()
clsBoundClass.displayMoveComplete = Check1.Value
End Sub