Hi,
when i run the code my second if condition is not checking the table wether user have admin access or not.
after checking 2nd condition its directly moving to else statement. please help me.
when i run the code my second if condition is not checking the table wether user have admin access or not.
after checking 2nd condition its directly moving to else statement. please help me.
Code:
If Me.Text13.Value = DLookup("EMP_PW", "M_EMPINFO", "[EMP_NO]=" & Me.Combo2.Value) Then
If Me.Combo2.Value = DLookup("emp_no", "m_empinfo", "admin_access" = yes) Then
DoCmd.OpenForm "UserAccess_Form", acNormal, "", "", acFormAdd, acNormal
Else
do something
Comment