Hi,
In the Employee table i have created the field UserID and linked with UserSetup table. In Employee form i included the field Userid where for each employee one userid is assigned. If userid is not mapped in the employee card then it should not allow me to enter into the database.
This needs to work for both in Windows login as well as in Database Login.
Looking forward for your valuable suggestions.
Jai
0
Comments
Thanks for your valuable suggestion. I placed the coding in LoginStart. The code is as follows:
Placing this code in Loginstart doesn't work. It shows the error message but it allows me to enter into the company even the employee doesn't exist. Where should i have to place this coding??????
Looking forward for your valuale suggestions.
Can anyone help me out to find the solution?????
Even if i place the function company close after the code . It's not working.... Is there any solution its very urgent can anyone help me out?????
If you are on SQL, you can use the stored procedure "sp_$ndo$loginproc" to do this check for you.
If you raise an application error when the user does not meet certain requirements, the user will not be allowed to login.
We've written an application that locks out all "regular" users except accounting during year end.
We also use it for locking out users while performing maintenance.
Regards,
Willy