Suppress Report Header

B

Bill

Is there a way to suppress the creation
of the header page in a report when
certain conditions are present..........
E.g., like openargs contains a value
that signals to the OnOpen that the
header page is not wanted?

Thanks,
Bill Stanton
 
F

fredg

Is there a way to suppress the creation
of the header page in a report when
certain conditions are present..........
E.g., like openargs contains a value
that signals to the OnOpen that the
header page is not wanted?

Thanks,
Bill Stanton


Code the Report Header Format event:
If Not IsNull(Me.OpenArgs) Then
Cancel = Me.OpenArgs = "Something"
End If
 
B

Bill

fredg said:
Code the Report Header Format event:
If Not IsNull(Me.OpenArgs) Then
Cancel = Me.OpenArgs = "Something"
End If

Simple enough Fred, thanks.

I didn't know that simply canceling the
header formatting would result in the
header page being entirely suppressed.

You understand that I don't want a
blank sheet to come out of the printer?

Bill
 
B

Bill

That canceled the page header and footer also.


fredg said:
Code the Report Header Format event:
If Not IsNull(Me.OpenArgs) Then
Cancel = Me.OpenArgs = "Something"
End If

That canceled the page header and footer also.
I just want to kill off the report header, i.e., the
first page that otherwise contains the report
header.
 
B

Bill

But only on the first page of the report. I.e.,
with the report header page suppressed, the
page that would ordinarily be the second page
of the report has had its page header and page
footer suppressed, including no page number.
The subsequent pages have their headings and
footings formatted correctly except that the
page numbers are now 1 page out of step.
 

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

Top