report print

  • Thread starter Thread starter seeker
  • Start date Start date
S

seeker

The following code is used to place a number in front of a record on a report:


Private Sub GroupHeader0_Print(Cancel As Integer, PrintCount As Integer)
intcounter = intcounter + 1
txtNumber = intcounter
End Sub

When the report is on the screen the numbers are correct (1 - 64) but when I
print the report the numbers are 65 - 129. How can i keep this from
happening. When the report opens incounter is initialized to 0.
 
Set the control source of TxtNumber to =1 and set the Running Sum
property to Over All

Get rid of the VBA code.

'====================================================
John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County
'====================================================
 
Back
Top