If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Resize Subreport Control Dynamically
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. |
#2
|
|||
|
|||
Resize Subreport Control Dynamically
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 -- Duane Hookom Microsoft Access MVP "KitCaz" wrote: 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. |
#3
|
|||
|
|||
Resize Subreport Control Dynamically
THANKS!!!!
"Duane Hookom" wrote: 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 -- Duane Hookom Microsoft Access MVP "KitCaz" wrote: 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. |
Thread Tools | |
Display Modes | |
|
|