Hi,
I am trying to deny users from logging on from multiple pc's. Here is how i've got it so far,
if there is a one then the user is logged in the condtion is met and a message box pops up to warn the user that he is already logged in.
The problem:
The above code does not check the specific TempVar to the LoggedIn field, the LoggedIn field is randomly checked for a '1' meaning if there is a '1' anywhere in the table then the condition is met and the user denied. how can i set the condition to validate the logged in user to the LoggedIn field.
I am trying to deny users from logging on from multiple pc's. Here is how i've got it so far,
- created table tblLoginLock with fields EmpID and LoggedIn both numberical data type
- created a form to set the Empid with tempvar!TempEmpId and LoggedIn as 1 when a user logs in
- When he clicks the logOff button he is signed out and a form opens up and closes to set the LoggedIn field to 0
Code:
DLookUp("[TempVars]!TempEmpID","tblLoginLock","[LoggedIn]=1")
The problem:
The above code does not check the specific TempVar to the LoggedIn field, the LoggedIn field is randomly checked for a '1' meaning if there is a '1' anywhere in the table then the condition is met and the user denied. how can i set the condition to validate the logged in user to the LoggedIn field.