D
daved
I have the code:
Private Sub txtEmpNo_AfterUpdate()
Dim strSQL As String
Dim EmpNo As String
strSQL = "SELECT EmpNo FROM tblEmployees;"
==> DoCmd.RunSQL strSQL
If Forms!frmTimeClock!txtEmpNo = EmpNo Then
MsgBox "OK"
Else
MsgBox "Not OK!"
End If
End Sub
I'm getting error message #2342
"A RunSQL action requires an argument consisting of an SQL statemnent."
I don't know how to fix this.. I have used the technique before and have
never gotten this error. This is however on an upgrade from Access 2002 to
Access 2003.
Dave D.
Private Sub txtEmpNo_AfterUpdate()
Dim strSQL As String
Dim EmpNo As String
strSQL = "SELECT EmpNo FROM tblEmployees;"
==> DoCmd.RunSQL strSQL
If Forms!frmTimeClock!txtEmpNo = EmpNo Then
MsgBox "OK"
Else
MsgBox "Not OK!"
End If
End Sub
I'm getting error message #2342
"A RunSQL action requires an argument consisting of an SQL statemnent."
I don't know how to fix this.. I have used the technique before and have
never gotten this error. This is however on an upgrade from Access 2002 to
Access 2003.
Dave D.