J
jserrone
Hello,
I have a database with a logon screen, I would like to be able to open a
separate form for anyone logging in as an Admin vs someone logging in as a
User. Bellow is the following VB code used to open the WelcomeForm once they
authenticate the logon. Is there a possibility to add that anyone accessing
with Admin only would have access to the form XXXX. In the tblEmployees my
Table is setup like this where strAccess defineds if this is a User or Admin:
lngEmpID strEmpName strEmpPassword strAccess
1 joe *** User
5 Admin **** Admin
Thanks
'Check value of password in tblEmployees to see if this matches value chosen
in combo box
If Me.txtPassword.Value = DLookup("strEmpPassword", "tblEmployees", "
[lngEmpID]=" & Me.cboEmployee.Value) Then
lngEmpID = Me.cboEmployee.Value
'Close logon form and open splash screen
DoCmd.OpenForm "WelcomeForm"
DoCmd.Close acForm, "frmLogon", acSaveNo
I have a database with a logon screen, I would like to be able to open a
separate form for anyone logging in as an Admin vs someone logging in as a
User. Bellow is the following VB code used to open the WelcomeForm once they
authenticate the logon. Is there a possibility to add that anyone accessing
with Admin only would have access to the form XXXX. In the tblEmployees my
Table is setup like this where strAccess defineds if this is a User or Admin:
lngEmpID strEmpName strEmpPassword strAccess
1 joe *** User
5 Admin **** Admin
Thanks
'Check value of password in tblEmployees to see if this matches value chosen
in combo box
If Me.txtPassword.Value = DLookup("strEmpPassword", "tblEmployees", "
[lngEmpID]=" & Me.cboEmployee.Value) Then
lngEmpID = Me.cboEmployee.Value
'Close logon form and open splash screen
DoCmd.OpenForm "WelcomeForm"
DoCmd.Close acForm, "frmLogon", acSaveNo