CODE:
Private Sub Command1_Click() If [Link] = 1 Then [Link] = True Else [Link] = False End If If [Link] = 1 Then [Link] = True Else [Link] = False End If If [Link] = 1 Then [Link] = True Else [Link] = False End If If [Link] = 1 Then [Link] = True Else [Link] = False End If End Sub
Create a Program Using 2 Option Buttons and a Command Button. Let the User Select whether the Command Button Should be Enabled or not.
Design Mode
Run Mode
CODE:
Private Sub Option1_Click() [Link] = True End Sub Private Sub Option2_Click() [Link] = False End Sub Private Sub Command1_Click() MsgBox "CLICK IS Enabled" End Sub