Hi all,
I have this SQL statement defined in a piece of code, I'm not used to doing this.... : ) i keep getting expected end of statement errors, can anyone tell me what I'm doing wrong?
SQL = "INSERT INTO TblScore ( AssessmentID, ParmsID, SiteID )" &
"SELECT Assessment.AssessmentID, tblAssessmentlink.ParmsID, [Forms]![Form1]![SiteName] AS Expr1" &
"FROM (Assessment INNER JOIN tblAssessmentlink ON Assessment.AssessmentID = tblAssessmentlink.AssessmentID) INNER JOIN tblLParms ON tblAssessmentlink.LParmsID = tblLParms.LParmsID" &
"WHERE (((Assessment.AssessmentID)=[Forms]![Form1]![AssessmentName]));"
Sorry about the formatting, It shows up on three lines in my code and each line ends with " &
TIA
Mayday
I have this SQL statement defined in a piece of code, I'm not used to doing this.... : ) i keep getting expected end of statement errors, can anyone tell me what I'm doing wrong?
SQL = "INSERT INTO TblScore ( AssessmentID, ParmsID, SiteID )" &
"SELECT Assessment.AssessmentID, tblAssessmentlink.ParmsID, [Forms]![Form1]![SiteName] AS Expr1" &
"FROM (Assessment INNER JOIN tblAssessmentlink ON Assessment.AssessmentID = tblAssessmentlink.AssessmentID) INNER JOIN tblLParms ON tblAssessmentlink.LParmsID = tblLParms.LParmsID" &
"WHERE (((Assessment.AssessmentID)=[Forms]![Form1]![AssessmentName]));"
Sorry about the formatting, It shows up on three lines in my code and each line ends with " &
TIA
Mayday