Well I'm not able to do what I was trying to do to being with, but I
still don't understanding some particulars about my original approach
wrote the code below as a test to count the number of times the Format
event fires. The end result is that each individual record is numbered
consecutively 1 to 105 (105 records total) which I take to mean that the
Format event was called 105 times. This works perfectly well when the
report is opened directly from the database window. However, when the
report exists as a SUBREPORT and the main REPORT is opened, the
numbering gets wacked out. Instead of starting 1, the numbering starts
at 5. This suggests that the format event was called 4 additional times.
I have fixed this by using the running sum property of a control.
However, still don't understand why the Detail_Format event of the
subform was called the additional number of times. I fully understand
that based on the GROUPING options, that the event might be called
multiple times before moving on (eg when Access gets to the bottom of
the page), however in my test report there was only 1 record.
Option Compare Database
Dim lngRecordCount As Long
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
lngRecordCount = lngRecordCount + 1
Me.dspRecordCount = lngRecordCount
End Sub