eliminate group header on print

  • Thread starter Thread starter ssblue
  • Start date Start date
S

ssblue

i have a report that i would like to show on screen put
when it goes to print i don't want a certain group header
to print out.
 
i have a report that i would like to show on screen put
when it goes to print i don't want a certain group header
to print out.

Here is the Report Coding you will need.

Option Compare Database
Option Explicit
Dim intHide As Integer

Private Sub Report_Activate()
intHide = -1
End Sub

Private Sub ReportHeader_Format(Cancel As Integer, FormatCount As
Integer)
intHide = intHide + 1
End Sub

Private Sub GroupHeader0_Format(Cancel As Integer, FormatCount As
Integer)
Cancel = intHide > 0
End Sub

Change GroupHeader0 to the name of your Group Header.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top