Atomic Shrimp
01-10-2001, 03:54 AM
I've got a subform that allows the user to browse records in a table, then when the user selects a record in the subform, various fields on the main form are populated with the data from the record; the user can edit these and if they click the 'submit' button, the changes they have made will be applied back to the table.
The subform then has to be refreshed to show the changes, but this makes it return to the first record.
I had thought that I could store the bookmark value from the subform when a record is selected (got this working OK, this code is in the subform's module, as the event to populate the main form's fields is in the OnClick event - when the user selects a record), and after the requery operation, reset the bookmark to the stored value...
...but I can't get it to work;
Me![MySubform].Bookmark = StoredValue
doesn't work (this code needs to be in the main form as that's where the 'Submit' button is, which does the requery action)
This can't be too difficult, can it?
Thanks in advance
Mike
The subform then has to be refreshed to show the changes, but this makes it return to the first record.
I had thought that I could store the bookmark value from the subform when a record is selected (got this working OK, this code is in the subform's module, as the event to populate the main form's fields is in the OnClick event - when the user selects a record), and after the requery operation, reset the bookmark to the stored value...
...but I can't get it to work;
Me![MySubform].Bookmark = StoredValue
doesn't work (this code needs to be in the main form as that's where the 'Submit' button is, which does the requery action)
This can't be too difficult, can it?
Thanks in advance
Mike