Generate Sequenced Numbers For A Report

aldo

Registered User.
Local time
Today, 09:04
Joined
Nov 18, 2006
Messages
10
I have a report that prints blank serialized forms and I basically need a query to generate a field where if I request 4 sheets to be printed the list generated would look like this:

IDNo
1
2
3
4


-aldo
 
Last edited:
Do this in your report. Have an unbound control that you update with an incremented counter. Increment that counter in the DetailFormat event:
Code:
Option Compare Database
Option Explicit
Dim i As Long

Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
 If FormatCount = 1 Then i = i + 1
 Me.MyClaimNo = i
End Sub
 

Users who are viewing this thread

Back
Top Bottom