HI all, not sure what I am doing wrong but I have two buttons on a form, depending on the name in the login field (text19) i need one or the other button to be visible and he other hidden. the two buttons are command 11 and 12. I need command11 to display if the name is "user name" and hidden if any other name
Private Sub Form_Load()
If Me.List19 = "user name" Then
Command11.Visible = True
Else
Command11.Visible = False
End If
End Sub
this code is in both the OnCurrent and OnLoad properties but of the form. when the user name is selected the button remains invisible all the time, probably becasue i have told it too somewhere
Private Sub Form_Load()
If Me.List19 = "user name" Then
Command11.Visible = True
Else
Command11.Visible = False
End If
End Sub
this code is in both the OnCurrent and OnLoad properties but of the form. when the user name is selected the button remains invisible all the time, probably becasue i have told it too somewhere