Report! Code needed to Hide a Reports Detail Line

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a series of reports that share a single filter form that allows the
user to select several different fields to filter the reports on. One of the
comboboxes is for details or summary. If they select summary I want to hide
the detail line of that report. The problem I am having is how to put a
varible name into a Report! statement? I have tried the following:

Report!stDocName.Detail.Visible = False

where stDocName is varible that holds the name of the report. This form is
opened when the report is opened. In the past I have put a message box in
each individual report and it works fine. I am just trying to streamline.
Please help!
 
DDBeards said:
I have a series of reports that share a single filter form that allows the
user to select several different fields to filter the reports on. One of the
comboboxes is for details or summary. If they select summary I want to hide
the detail line of that report. The problem I am having is how to put a
varible name into a Report! statement? I have tried the following:

Report!stDocName.Detail.Visible = False

where stDocName is varible that holds the name of the report. This form is
opened when the report is opened. In the past I have put a message box in
each individual report and it works fine. I am just trying to streamline.


Reports(stDocName).Detail.Visible = False
 
Back
Top