A
Al
I know that the best way to track who is in the db is to enforce security.
However, I am in a situation where the client does not want the security to
be enforced at least right now. since we will have to keep another file
(.mdw) on the network. Is there a way to track few users (5 max) in access
through code? I have a login form that has 2 text boxes, one for the user ID
and the other for the password. I have a table called tblUserLog that every
time a user logsin, a new record is created in that table keeping the login
ID and date/time. The login form fires the code in the after update event
behind a txt box for the password. I have another table called tblRole, in
which we have every user assigned a level of authority i.e. some fileds would
be locked for a user with authority level, say, 3 but same fields would be
unlocked for user authority level, say, 1. The problem I am have to solve is,
if user with level 1 logged in and in the same time a user with level 3 loged
in, how can the form differentiate between the two in the same time? Some
levels will have a read only on some fields and read/write on others. I have
only 3 levels of authority and about 5 users. I know it would have been a lot
easier with access security but I have to deal with this situation temporarly
until the testing and validation is done.
thanks
However, I am in a situation where the client does not want the security to
be enforced at least right now. since we will have to keep another file
(.mdw) on the network. Is there a way to track few users (5 max) in access
through code? I have a login form that has 2 text boxes, one for the user ID
and the other for the password. I have a table called tblUserLog that every
time a user logsin, a new record is created in that table keeping the login
ID and date/time. The login form fires the code in the after update event
behind a txt box for the password. I have another table called tblRole, in
which we have every user assigned a level of authority i.e. some fileds would
be locked for a user with authority level, say, 3 but same fields would be
unlocked for user authority level, say, 1. The problem I am have to solve is,
if user with level 1 logged in and in the same time a user with level 3 loged
in, how can the form differentiate between the two in the same time? Some
levels will have a read only on some fields and read/write on others. I have
only 3 levels of authority and about 5 users. I know it would have been a lot
easier with access security but I have to deal with this situation temporarly
until the testing and validation is done.
thanks