G
GD
I'm trying to block access to a form using boxes to cover sensitive areas, if
the user doesn't have the auth to view them, based on a table.
Private Sub Form_Current()
If DLookup("[Level]", "tblUsers", "[UserID]='" & CurrentUser() & "'") >
1 Then
CoverBox4.Visible = True
Else
CoverBox4.Visible = False
End If
End Sub
I am currently a level 2 user, but the cover box doesn't appear when I open
the form. What am I doing wrong??
Thanks for your time!
the user doesn't have the auth to view them, based on a table.
Private Sub Form_Current()
If DLookup("[Level]", "tblUsers", "[UserID]='" & CurrentUser() & "'") >
1 Then
CoverBox4.Visible = True
Else
CoverBox4.Visible = False
End If
End Sub
I am currently a level 2 user, but the cover box doesn't appear when I open
the form. What am I doing wrong??
Thanks for your time!