A
Al
I am getting "Syntax error in the order by clause" on the following sql
statment. the statment is in the code behind a button. the sql works without
a problem if I take out the Order By.
ssql = "SELECT RevCommID, RevCommentDate, ProjCode, Proj_Name,
ProjectManager, "
ssql = ssql & "SubmittalPhase, PercentComplete, SheetNumber,
Grid_KeyWord_DetailNo, "
ssql = ssql & "ReviewCategory, Reviewer, RevComment, Attachment,
AEResponder, "
ssql = ssql & "RTC, AEResponse, AERespCost, AEValidation "
ssql = ssql & "INTO " & Me.txtTableName
ssql = ssql & " FROM qryExportComments "
ssql = ssql & "GROUP BY RevCommID, RevCommentDate, ProjCode, Proj_Name,
ProjectManager, "
ssql = ssql & "SubmittalPhase, PercentComplete, SheetNumber,
Grid_KeyWord_DetailNo, "
ssql = ssql & "ReviewCategory, Reviewer, RevComment, Attachment,
AEResponder, "
ssql = ssql & "RTC, AEResponse, AERespCost, AEValidation "
ssql = ssql & "ORDER BY SheetNumber, Reviewer "
statment. the statment is in the code behind a button. the sql works without
a problem if I take out the Order By.
ssql = "SELECT RevCommID, RevCommentDate, ProjCode, Proj_Name,
ProjectManager, "
ssql = ssql & "SubmittalPhase, PercentComplete, SheetNumber,
Grid_KeyWord_DetailNo, "
ssql = ssql & "ReviewCategory, Reviewer, RevComment, Attachment,
AEResponder, "
ssql = ssql & "RTC, AEResponse, AERespCost, AEValidation "
ssql = ssql & "INTO " & Me.txtTableName
ssql = ssql & " FROM qryExportComments "
ssql = ssql & "GROUP BY RevCommID, RevCommentDate, ProjCode, Proj_Name,
ProjectManager, "
ssql = ssql & "SubmittalPhase, PercentComplete, SheetNumber,
Grid_KeyWord_DetailNo, "
ssql = ssql & "ReviewCategory, Reviewer, RevComment, Attachment,
AEResponder, "
ssql = ssql & "RTC, AEResponse, AERespCost, AEValidation "
ssql = ssql & "ORDER BY SheetNumber, Reviewer "