A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Resize Subreport Control Dynamically



 
 
Thread Tools Display Modes
  #1  
Old October 31st, 2007, 02:14 PM posted to microsoft.public.access.reports
KitCaz
external usenet poster
 
Posts: 11
Default 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  
Old October 31st, 2007, 02:33 PM posted to microsoft.public.access.reports
Duane Hookom
external usenet poster
 
Posts: 7,177
Default 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  
Old October 31st, 2007, 02:39 PM posted to microsoft.public.access.reports
KitCaz
external usenet poster
 
Posts: 11
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:24 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.