I have a report that I need to automatically number the lines for each detail record.
Here is what I have so far:
Private Sub GroupHeader0_Format(Cancel As Integer, FormatCount As Integer)
lngPlace = 0
End Sub
And here's where the detail gets counted:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
lngPlace = lngPlace + 1
Me.txtPlace = lngPlace
End Sub
This is working just great except when the number of records exceeds the number of lines on the page and goes to the next page. For example, I can get 60 lines per page, but when it goes to the next page, the first item number is 62 NOT 61.
Any ideas?
Here is what I have so far:
Private Sub GroupHeader0_Format(Cancel As Integer, FormatCount As Integer)
lngPlace = 0
End Sub
And here's where the detail gets counted:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
lngPlace = lngPlace + 1
Me.txtPlace = lngPlace
End Sub
This is working just great except when the number of records exceeds the number of lines on the page and goes to the next page. For example, I can get 60 lines per page, but when it goes to the next page, the first item number is 62 NOT 61.
Any ideas?