I have an update statement in Access VBA as follows:-
My debug print statement shows all values as correct but I am still getting the 3144 syntax error on the DoCmd.RunSQL strSQL and also tried DoCmd.RunSQL(strSQL). Got error on both
Could anyone help
Code:
Dim strSQL As String
strSQL = " UPDATE [siezure_event]" & _
" SET [Seizure_Class] = '" & gC1Desc & "'," & _
" WHERE ([Patient_UID] = '" & gName & "' AND [Siezure_Type]=1)"
Debug.Print strSQL
DoCmd.RunSQL strSQL
My debug print statement shows all values as correct but I am still getting the 3144 syntax error on the DoCmd.RunSQL strSQL and also tried DoCmd.RunSQL(strSQL). Got error on both
Could anyone help