I am trying to disable the save or add new button if a textbox is empty on an access form but it is not working, the button is still enabled. So I disable in the button property's panel and flip the code to enable it but that does not work also.
This is the code:
Code:
Private Sub form_load() If Len(Me.FIRST_NAME) = 0 Then Me.CommandAddNew.Enabled = False End If End Sub
Leave a comment: