I have created a table called 'users', this contains user name and the group which they belong to. I am attempting to get the database to check what group the current user belongs to, in order to set permissions for that user.
The problem I am having is the code works fine on one PC and when you attempt to run the application on another the DLookup function appears to fail and it will return the 'UserGroup variable = ""'. The User details appear to be fine.
***********************************************************
UserName = Environ$("username"
UserGroup = DLookup("[Group]", "UserDetails", "[User] = '" & UserName & "'"
***********************************************************
Any help would be greatly appreciated.
The problem I am having is the code works fine on one PC and when you attempt to run the application on another the DLookup function appears to fail and it will return the 'UserGroup variable = ""'. The User details appear to be fine.
***********************************************************
UserName = Environ$("username"
UserGroup = DLookup("[Group]", "UserDetails", "[User] = '" & UserName & "'"
***********************************************************
Any help would be greatly appreciated.