Hi,
I currently have a working multi user login form which automatically directs users to the relevent forms e.g. general staff have access to a form called staff1 and staff2 whereas managers have access to a form called manager1. I have used the following code:
My question is how can I track users once they have logged in. I have a database which tracks data that has been editted from the main database and I would like to know how to show which user has done this.
Thanks in advance.
I currently have a working multi user login form which automatically directs users to the relevent forms e.g. general staff have access to a form called staff1 and staff2 whereas managers have access to a form called manager1. I have used the following code:
Code:
Option Compare Database Private Sub Login_Click() UserName.SetFocus If UserName = "Staff1" And Password = "Staff1" Then MsgBox "Welcome" DoCmd.Close DoCmd.OpenForm "Staff1" ElseIf UserName = "Staff2" And Password = "Staff2" Then MsgBox "Welcome" DoCmd.Close DoCmd.OpenForm "Staff2" ElseIf UserName = "Manager1" And Password = "Manager1" Then MsgBox "Welcome, please exercise caution when changing query or table conditions", vbInformation, "CDSignatures" DoCmd.Close DoCmd.OpenForm "Manager1" Else MsgBox "Please re-enter Username and Password" End If End Sub
Thanks in advance.
Comment