Hi,
I have multiple user login based access database. There is table with name""UsersActivity". I created a form based on this table.
I want to highlight users whose status is still logged in but not logged out yet from the the database.
There are three fields in form (taken from table), and a 4th unbound field for current user.
txtDateTime
txtUserID
txtUserActivity
txtCurrentuser (In this field I want to this user is active now).
Example table below. (Date and time is in Descending order- so latest up)
I want to mark as "Active" in Current user field. For Example in above table User "D" "C" and "E" are still active because they are still not logged off.
Any Idea please VBA, How can specify "txtuserID" with field of Activity which ID still equal to "logon" but not "logoff".
Thanks
I have multiple user login based access database. There is table with name""UsersActivity". I created a form based on this table.
I want to highlight users whose status is still logged in but not logged out yet from the the database.
There are three fields in form (taken from table), and a 4th unbound field for current user.
txtDateTime
txtUserID
txtUserActivity
txtCurrentuser (In this field I want to this user is active now).
Example table below. (Date and time is in Descending order- so latest up)
DateTime | User ID | Activity | Current User |
---|---|---|---|
E | Logon | ||
A | Logoff | ||
C | Logon | ||
D | Logon | ||
B | Logoff |
Any Idea please VBA, How can specify "txtuserID" with field of Activity which ID still equal to "logon" but not "logoff".
Thanks