lBookmark is declared in and used exclusively in the Save_click commandbutton
event of the main form. It stores the bookmark of the record in the ADO
recordset used to make edits to the selected record of the subform. The ADO
recordset in the Save_Click event is independent of the subform recordset.
I'm not making edits to the subform recordset directly, hence the need to
requery the subform and then re-find the user-selected record again, after
editing is completed.
Does that make more sense?
Here's code from another attempt (Where Subform.RecordSource = StoredQuery):
rsEdit.Open "SELECT * FROM StoredQuery WHERE ID = " & Subform.ID
'****[Code for editing record]****
lngID = rsEdit!ID
rsEdit.Update
rsEdit.Close
Subform.Requery
rsFind.Open "SELECT * FROM StoredQuery"
rsFind.Find("ID = " & lngID)
Subform.Bookmark = rsFind.Bookmark
rsFind.Close
This results in the same bookmark error.
What's the scope of "lBookmark"? Is it "tied" to the cloned recordset of the
subform or to a cloned recordset of the main form?
[quoted text clipped - 3 lines]