PC Review


Reply
Thread Tools Rate Thread

adjusting the height of text boxes in a report

 
 
DanWH
Guest
Posts: n/a
 
      3rd Jan 2008
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
 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      3rd Jan 2008
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.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"DanWH" <(E-Mail Removed)> wrote in message
news:B76E1936-57DD-435F-835F-(E-Mail Removed)...
> 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



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adjusting row height while wrapping text Office_user Microsoft Excel Misc 0 5th Apr 2009 02:17 PM
Adjusting row height to accomidate text in a cell =?Utf-8?B?R2VvcmdlSg==?= Microsoft Excel Misc 2 20th Nov 2007 12:31 AM
Text boxes height Paradigm Microsoft Access 1 14th Apr 2007 03:42 PM
Auto Adjusting Text Boxes? =?Utf-8?B?SmFl?= Microsoft Excel New Users 1 12th Aug 2005 04:38 AM
Adjusting Report Sections height JonWayne Microsoft Access Form Coding 3 8th Nov 2004 05:36 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:14 AM.