Quantcast
Channel: Access Reports
Viewing all articles
Browse latest Browse all 50

Detail_Format works in Print Preview but Not When Printing

$
0
0
I am trying to use the technique of having a page break widget in my detailsection to control when a new page should be generated. In my Detail_Format section of the report, my code looks like:

Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If (Me.Page = 1 And firstTime) Then
Me![pageBreak].Visible = False
Else
Me![pageBreak].Visible = ((Len(Nz(data1, "")) > 0) And (Not (firstTime)))
End If
firstTime = False
End Sub

where data1 represents the key field that I am using to generate a...

Read more

Viewing all articles
Browse latest Browse all 50

Trending Articles