Hi I would like to ask for help. I am trying to build my database but I am encountering run time error 2471 The expression you entered as a query parameter produce this error: 'KSE. "
I am trying to make Dlookup for EMP_Name field in my form when i enter value in EMP_ID. here's the code that I am using, hope that you can help me with this thanks a lot.
Private Sub txtEMPID_AfterUpdate()
Me.txtEMP_NAME = DLookup("EMP_Name", "Emp_Det", "Emp_ID=" & Me.txtEMPID)
End Sub
I am trying to make Dlookup for EMP_Name field in my form when i enter value in EMP_ID. here's the code that I am using, hope that you can help me with this thanks a lot.
Private Sub txtEMPID_AfterUpdate()
Me.txtEMP_NAME = DLookup("EMP_Name", "Emp_Det", "Emp_ID=" & Me.txtEMPID)
End Sub