Hi,
This is concerning an Access 97 application.
I have a subform embedded in a form.
The subform has a record set. you can go to a particular row in the recordset by clicking - and
the cursor moves to that record. I have a button that does something and then refreshes the
overall form. When the form is refreshed, the cursor in the subform automatically jumps to the
first record in the recordset (i guess that's how Access is set up). I want to do this: after
form refresh, I want cursor to jump back to the record that it was on before the refresh.
I tried this:
Dim saveMark As String
saveMark = Forms!MainForm.NameOfSubFormControl.Form.Bookmark
Forms!MainForm.Refresh
Forms!MainForm.NameOfSubFormControl.Form.Bookmark = saveMark
I'm getting the following error on the very last line of code.
Invalid Bookmark
It actually was working fine for a while . now, I can't seem to get rid of this error.
Thanks.
Saad