hi, i have a command button which is initially disabled. whenever i key in any data into a text field, the command button will be enabled.
now my problem is how can i disable the command button after clicking it once?
i wrote the abv code but it gives the error: "You can't disable a control while it has the focus." during run time.
now my problem is how can i disable the command button after clicking it once?
Code:
Private Sub CommandButton_Click
CommandButton.Enabled = False
End Sub
i wrote the abv code but it gives the error: "You can't disable a control while it has the focus." during run time.