G
Guest
Make a standalone procedure like this:
Private Sub HideShowCommand1()
If CheckBox then
Command1.Visible = True
Else
Command1.Visible = False
End If
End Sub
Now, call this when you change the CheckBox
Private Sub CheckBox_AfterUpdate()
HideShowCommand1
End Sub
Also place it inside your Form_Current event to ensure that the button is
shown/hidden based on the status of the checkbox as you navigate to each
record.
Private Sub HideShowCommand1()
If CheckBox then
Command1.Visible = True
Else
Command1.Visible = False
End If
End Sub
Now, call this when you change the CheckBox
Private Sub CheckBox_AfterUpdate()
HideShowCommand1
End Sub
Also place it inside your Form_Current event to ensure that the button is
shown/hidden based on the status of the checkbox as you navigate to each
record.