Hey ya,
Take a look at the attachment first. Ok, now here's my problem:
I've got some custom navigation buttons on both my main form, a subform, and a sub-subform...(nested 3 levels deep)
They work. Except that the "y" of the "x of y" record count, for example, does not get refreshed for the subforms when I change the main record.
I want the subforms to recalculate the RecordCount for each of their Recordsets (dynamically) each time the record changes.
For the OnCurrent event for each form, I use the following code:
Dim rstForm As Recordset
Set rstForm = Me.RecordsetClone
rstForm.Bookmark = Me.Bookmark
lngGetRecCount = rstForm.RecordCount
where lngGetRecCount is the "y"
[If I go down to the subforms and 'activate' them, eg. filter and then remove filter, the RecordCount gets updated accurately]
Any ideas? Thanks.
Take a look at the attachment first. Ok, now here's my problem:
I've got some custom navigation buttons on both my main form, a subform, and a sub-subform...(nested 3 levels deep)
They work. Except that the "y" of the "x of y" record count, for example, does not get refreshed for the subforms when I change the main record.
I want the subforms to recalculate the RecordCount for each of their Recordsets (dynamically) each time the record changes.
For the OnCurrent event for each form, I use the following code:
Dim rstForm As Recordset
Set rstForm = Me.RecordsetClone
rstForm.Bookmark = Me.Bookmark
lngGetRecCount = rstForm.RecordCount
where lngGetRecCount is the "y"
[If I go down to the subforms and 'activate' them, eg. filter and then remove filter, the RecordCount gets updated accurately]
Any ideas? Thanks.
Attachments
Last edited: