thmsjlmnt3953
Registered User.
- Local time
- Today, 10:01
- Joined
- May 20, 2014
- Messages
- 120
Hi
I'm using the following to get a users id number once they login - that part the first line works. however now i want to use that number to check in the permissions table to see if there is a tick in the 'EnterTrade' field and if not then do some action however i cant seem to get it tot work
I'm using the following to get a users id number once they login - that part the first line works. however now i want to use that number to check in the permissions table to see if there is a tick in the 'EnterTrade' field and if not then do some action however i cant seem to get it tot work
Code:
'return user id to check permissions
EmpIDLogin = DLookup("[empid]", "tblemployee", "[userid] ='" & Me.txtUserID.Value & "'")
If DLookup("[EnterTrade]", "tblpermissions", "[empID] ='" & EmpIDLogin & "'") = -1 Then 'somefunction