Article ID: 139046
Article Last Modified on 1/19/2007
Option Compare Database
' This code declares the cLines variable as an integer, and the
' cMaxLine constant as five. You can set the cMaxLine constant
' to insert a blank line after as many lines as you want. For
' example, to add a blank line after every eight lines in the
' report, set cMaxLine=8.
Dim cLines As Integer
Const cMaxLine=5
Private Sub Report_Open (Cancel As Integer)
'This code initializes the cLines variable to zero.
cLines = 0
End Sub
Private Sub Detail_Format (Cancel As Integer, FormatCount As _
Integer)
' This code adds a blank line by setting the NextRecord and
' PrintSection properties.
If cLines Mod (cMaxLine+1) = 0 Then
Me.NextRecord = False
Me.PrintSection = False
End If
cLines = cLines + 1
End Sub
Keywords: kbhowto KB139046