Resize Subreport Control Dynamically

K

KitCaz

Hi,

I have two reports which I'd like to share a single subreport; the subreport
contains some memo text. On one of the reports the subreport control is
narrower than on the other. When opening the report where the subreport is
narrower I'd like to shorten the memo text control so that it fits within the
container's width (otherwise it disappears from view). How can I do this?
I've tried things like "Subreport.Report.txtDetailLine.Width =
Subreport.Width" but no dice.

I hope I'm making myself clear. :)
 
D

Duane Hookom

I would attempt something with code in the subreport. Try:

If Me.Parent.Name = "rptNarrow" Then
Me.txtDetailLine.Width = Me.Parent.SubReportA.Width
End If
 
K

KitCaz

THANKS!!!!

Duane Hookom said:
I would attempt something with code in the subreport. Try:

If Me.Parent.Name = "rptNarrow" Then
Me.txtDetailLine.Width = Me.Parent.SubReportA.Width
End If
 

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