I'm trying to allow full menus based on network usernames. Right now I'm showing the database table for the username "james". Anyone know how to do that programatically?



If LCase(Environ$("Username")) = "james" Then
'Show database window
DoCmd.SelectObject acTable, , True
End If