Hello,
I have the following stmt in VBA:
DoCmd.RunSQL "INSERT INTO tStudentYear(studentID,Year,schoolID) VALUES('" & theStudentID & "','2009','" & theSchoolID & "')"
being: theStudentID and theSchoolID both Strings.
It doesn't insert the records in the "tStudentYear" table, and I already added some MsgBoxes to see if theStudentID and theSchoolID were picking up the right info and they are.
Please note that it is not giving me a syntax error, it just does not insert the records into the table.
Thank you very much
I have the following stmt in VBA:
DoCmd.RunSQL "INSERT INTO tStudentYear(studentID,Year,schoolID) VALUES('" & theStudentID & "','2009','" & theSchoolID & "')"
being: theStudentID and theSchoolID both Strings.
It doesn't insert the records in the "tStudentYear" table, and I already added some MsgBoxes to see if theStudentID and theSchoolID were picking up the right info and they are.
Please note that it is not giving me a syntax error, it just does not insert the records into the table.
Thank you very much