F
Fay
I am trying with VBA to force a page break on a group if a control is not
checked. The checkbox default setting is -1 forcing the user to manually
change it for a run on report. I don't get any error messages with this code
but neither do I get the three departments to print on one page. Thank you
for your assistance.
Private Sub GroupHeader0_Format(Cancel As Integer, FormatCount As Integer)
Dim intGetVal As Integer
If [Forms]![frmReports]![chkForceBreak] = -1 Then
intGetVal =
[Reports]![rptStaffListingByUnit].Section(acDetail).ForceNewPage = 1
End If
End Sub
checked. The checkbox default setting is -1 forcing the user to manually
change it for a run on report. I don't get any error messages with this code
but neither do I get the three departments to print on one page. Thank you
for your assistance.
Private Sub GroupHeader0_Format(Cancel As Integer, FormatCount As Integer)
Dim intGetVal As Integer
If [Forms]![frmReports]![chkForceBreak] = -1 Then
intGetVal =
[Reports]![rptStaffListingByUnit].Section(acDetail).ForceNewPage = 1
End If
End Sub