D
DanWH
I need to adjust the height of a text box that is adjacent to a subreport in
the detail section of the main report for each instance as the report is
generated. What I've tried doing is below:
Dim height as integer
height = reports.item("subreport").windowheight
me.textbox.height = height
With that I got a can't find report error.
I was then told to change the code to this:
Dim height as integer
height = Reports("NameOfReport").Item("Subreport").windowheight
me.textbox.height = height
However with that I received an application defined or object defined error.
I've tried different versions but can't get it to work. What I basically
need is a way to get the windowheight of a subreport that is embedded in the
main report.
I am using the name of the subreport control on the report and not the name
of the report that the sub report is based on.
Please help
Dan
the detail section of the main report for each instance as the report is
generated. What I've tried doing is below:
Dim height as integer
height = reports.item("subreport").windowheight
me.textbox.height = height
With that I got a can't find report error.
I was then told to change the code to this:
Dim height as integer
height = Reports("NameOfReport").Item("Subreport").windowheight
me.textbox.height = height
However with that I received an application defined or object defined error.
I've tried different versions but can't get it to work. What I basically
need is a way to get the windowheight of a subreport that is embedded in the
main report.
I am using the name of the subreport control on the report and not the name
of the report that the sub report is based on.
Please help
Dan