I am trying to save record in more then one table i am using insert statement but it gives me “syntax error in the INSERT INTO statement”
Here is my code
strSQL = " INSERT INTO [2011 Nurse Patient Index]
(File Number, Patient name ,Gender , AgeRTU , Nationality ,
Diagnosis , Other , Appointment , Date)
VALUES('" & File_NumberRTU.Value & "','" & Patient_nameRTU.Value & "' ,
'" & GenderRTU.Value & "', '" & AgeRTU.Value & "' ,
'" & NationalityRTU.Value & "' , '" & DiagnosisRTU.Value & "' ,
'" & OtherRTU.Value & "' , '" & AppointmentRTU.Value & "' ,
'" & DateRTU.Value & "')"
CurrentDb.Execute strSQL
the error appears in this line
CurrentDb.Execute strSQL
Can anyone tell me where I went wrong?
Thank you
If the Date column is of type
DateorDatetimein your database, you may have to surroundDateRTU.Valuewith #’s, i.e.,