Hello.
Is there a way to make a field on a form visible or not visible dependant on repsonses made in a table.
I.e
I want a button for admin tools to appear when the admin user is logged in.
I have the above code but it does not work.
Any help appreciated.
Is there a way to make a field on a form visible or not visible dependant on repsonses made in a table.
I.e
I want a button for admin tools to appear when the admin user is logged in.
Code:
Private Sub Form_Load()
If Tbl_Users_EngineerID = "Administrator" And Tbl_Users_fldLoggedIn = True Then
Me.cmdAdminTools.Visible = True
Else
Me.cmdAdminTools.Visible = False
End If
End Sub
I have the above code but it does not work.
Any help appreciated.