R
Richard Hollenbeck
Does anybody have insight on this particular error?
Run-time error '3265':
Item not found in this collection
Here's a snippet of my code. The last line (txtAverages = rs...) was
highlighted in yellow:
Private Sub Form_Load()
Dim dbMain As DAO.Database, rsMain As DAO.Recordset, StrSql As String
Set dbMain = CurrentDb()
StrSql = "SELECT [qryCourseGradeDistribution].[Current Average] "
StrSql = StrSql & "FROM [qryCourseGradeDistribution] "
StrSql = StrSql & "WHERE [qryCourseGradeDistribution].[courseCode]= '"
StrSql = StrSql & " [Forms]![frmSelectCourse]![cboSelectCourse] & "'"
Set rsMain = dbMain.OpenRecordset(StrSql, dbOpenDynaset)
txtAverages = rsMain.Fields(1)
End Sub
Thanks,
Rich Hollenbeck
Run-time error '3265':
Item not found in this collection
Here's a snippet of my code. The last line (txtAverages = rs...) was
highlighted in yellow:
Private Sub Form_Load()
Dim dbMain As DAO.Database, rsMain As DAO.Recordset, StrSql As String
Set dbMain = CurrentDb()
StrSql = "SELECT [qryCourseGradeDistribution].[Current Average] "
StrSql = StrSql & "FROM [qryCourseGradeDistribution] "
StrSql = StrSql & "WHERE [qryCourseGradeDistribution].[courseCode]= '"
StrSql = StrSql & " [Forms]![frmSelectCourse]![cboSelectCourse] & "'"
Set rsMain = dbMain.OpenRecordset(StrSql, dbOpenDynaset)
txtAverages = rsMain.Fields(1)
End Sub
Thanks,
Rich Hollenbeck