JonWayn said:
Furthermore, I tried setting that section's Visible property to false and
that didnt hide the section. When I set the section's Height property to 0,
the section shrinks to nothing but in design view, the header and footer bars
are displayed.
A section does not disappear in design view just because you
set it's Visible property to No. The property is only used
when the report is previreved/printed. As long as the
sections exist, the header/footer bars will always be
displayed in design view.
You can toggle the Page Header/Footer sections by using:
DoCmd.RunCommand acCmdPageHdrFtr
Rename the report by using:
CurrentDb.Reports(rpt.Name).Name = "newname"
Are you aware that CreateReport should never be used in a
running application? CreateReport is only to be used in
wizard procedures that you use to help yourself design a
report, not in response to a user's actions (e.g. button
click).