I'm getting "Error 3061: To few parameters. Expected 2." in the CurrentDb.Execu te lines in the following code:
The values for the variables are as follows:
varTakenCourseI d = Null (variable datatype as I need it to accept nulls)
blnWaived = True
lngStdDegReqCou rseId = 9122
I am unable to determine where the problem lies.
Code:
'variables previously defined
'rstCust previously defined
'rstStdCourses previously defined
Do While Not rstStdCourses.EOF
varTakenCourseId = rstCust!TakenCourseId
blnWaived = rstCust!Waived
lngStdDegReqCourseId = rstStdCourses!StdDegReqCourseId
'If some criteria is met Then
CurrentDb.Execute "UPDATE StdDegReqCourse SET TakenCourseId = varTakenCourseId, Waived = blnWaived, Customized = -1 WHERE StdDegReqCourseId = " & lngStdDegReqCourseId
Exit Do
Else
End If
rstStdCourses.MoveNext
Loop
varTakenCourseI d = Null (variable datatype as I need it to accept nulls)
blnWaived = True
lngStdDegReqCou rseId = 9122
I am unable to determine where the problem lies.
Comment