|
Resyncing a Subform Record in Microsoft AccessProvided by: Luke Chung, FMS PresidentIn a Microsoft Access form with a linked subform, when the master record is updated, the subform resets itself to the first record.It is preferable to keep the record pointer at the same subform record. The solution is very simple. Get the ID identifying the row that should be the current one. Use this ID value to search on the RecordsetClone and use the bookmark property to resync your subform record.
Sub
ResyncSubformRecord(strSubformName As String, _
Set rst = Me(strSubformName).RecordsetClone
|