R
Richard Hollenbeck
My debugging window shows that the correct values for CourseAverage is being
collected at run time, but for some reason I get endless syntax errors. I
tried a number of combinations single and double quotations but I just can't
seem to figure it out.
Here's my stuff (abbreviated):
'. . .etc., etc., etc. . .
CourseAverage = CourseTotals / NumOfStudents
'. . .etc., etc., etc. . .
StrSQL = "UPDATE tblTempCourseGradeDistribution "
StrSQL = StrSQL & "SET [tblTempCourseGradeDistribution].[averageGrade] =
" & CourseAverage & ";"
'. . .etc., etc., etc. . .
I'm trying to update [tblTempCourseGradeDistribution].[averageGrade]
with the value contained in the variable CourseAverage. The temporary table
only has one record.
Could it be that UPDATE queries just don't like variables? Does the data
have to come from a table? Or is there a fundamental flaw in my query? The
variables all properly demensioned and properly collect the correct data.
Thanks. Richard Hollenbeck
collected at run time, but for some reason I get endless syntax errors. I
tried a number of combinations single and double quotations but I just can't
seem to figure it out.
Here's my stuff (abbreviated):
'. . .etc., etc., etc. . .
CourseAverage = CourseTotals / NumOfStudents
'. . .etc., etc., etc. . .
StrSQL = "UPDATE tblTempCourseGradeDistribution "
StrSQL = StrSQL & "SET [tblTempCourseGradeDistribution].[averageGrade] =
" & CourseAverage & ";"
'. . .etc., etc., etc. . .
I'm trying to update [tblTempCourseGradeDistribution].[averageGrade]
with the value contained in the variable CourseAverage. The temporary table
only has one record.
Could it be that UPDATE queries just don't like variables? Does the data
have to come from a table? Or is there a fundamental flaw in my query? The
variables all properly demensioned and properly collect the correct data.
Thanks. Richard Hollenbeck