Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Object Required on EOF

Status
Not open for further replies.

wx5chr

Technical User
Jan 21, 2004
31
US
I am getting an "Object Required" error on the line marked below. Any ideas why?

Dim dbTemp As DAO.Database
Dim rsTemp As DAO.Recordset
Dim strSQL As String

Set dbTemp = CurrentDb

strSQL = "SELECT T_Dates.Rev_Pub_Date, T_Dates.Current FROM T_Dates " & _
"WHERE (((T_Dates.Proc_ID)= " & Me.Proc_ID & ") " & _
"AND ((T_Dates.Current) = -1)) ORDER BY T_Dates.Rev_Pub_Date DESC;"

Set rsTemp = dbTemp.OpenRecordset(strSQL)

If rsTemp.RecordCount > 1 Then
rsTemp.MoveFirst
rsTemp.MoveNext
Do Until rs.Temp.EOF <---- Here's where the error shows
With rsTemp
.Edit
!CurrentCk = 0
.Update
End With
rsTemp.MoveNext
Loop
End If
rsTemp.Close
 
Disregard. RoyVidar caught my typo.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top