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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access VBA error: You canceled the previous operation

Status
Not open for further replies.

Totenkopf

Technical User
Jun 15, 2006
4
CA
The code below always give me that error on line "Me.Bookmark = rs.Bookmark" after each selection in a combo box. Currently to circumvent this problem, I have to click "Debug", stop the debugging in vba editor, and then the combo box works as normal like nothing just happened. So this error pops up every time I load the form for the first time and tried to select something.

How do I fix this?


Thanks



Private Sub cbWeek_AfterUpdate()

Dim rs As ADODB.Recordset
Set rs = Me.RecordsetClone

rs.Find "[id] = " & Me.cbWeek.Value
Me.Bookmark = rs.Bookmark

End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top