adjusting the height of text boxes in a report

D

DanWH

I'm creating a report that is required to be in a specific format which has a
text box in the detail followed by a subreport directly to the right of the
text box. The subreport will grow depending on the amount of data. What I
want is the text box adjacent to it to be sized on the report equal to the
subreport.

What I've tried writing is:

Dim height as interger
height = reports.item("subreport").windowheight
me.textbox.height = height

but I get the error stating that subreport cannot be found. Is this the
right code or what am I doing wrong.

Thanks
Dan
 
D

Douglas J. Steele

Reports.Item is invalid: you need a report name in there, like
Reports("NameOfReport").Item("subreport").windowheight

Note, too, that "subreport" needs to be the name of the subreport control on
the report. Depending on how you added the subreport, the name of the
subreport control can be different than the name of the report being used as
a subreport.
 

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