On my form I have a checkbox called "owner" and when it is checked a button is shown. The code I use is:
Private Sub Owner_AfterUpdate()
If owner = True Then
Command2162.Visible = True
Else
Command2162.Visible = False
End If
End Sub
This works; however, when I leave the form, and that record, then go back into it, the button does not stay visible. How can I make that button stay visible when that checkbox remains checked?
I have the "Visible" control set to "No".
Any help as always would be appreciated ;-)
Private Sub Owner_AfterUpdate()
If owner = True Then
Command2162.Visible = True
Else
Command2162.Visible = False
End If
End Sub
This works; however, when I leave the form, and that record, then go back into it, the button does not stay visible. How can I make that button stay visible when that checkbox remains checked?
I have the "Visible" control set to "No".
Any help as always would be appreciated ;-)