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  

Moving a line control on a report ...



 
 
Thread Tools Display Modes
  #1  
Old May 24th, 2004, 04:36 PM
Dan Turner
external usenet poster
 
Posts: n/a
Default Moving a line control on a report ...

I have a report with a text box control which can grow as required
depending on the contents of the text box.

I also have a line control in the detail section which divides each
entry on the report.

What I would like to happen is that if the text box control grows then
the line moves as well so as the line splits each entry correctly.

The way it displays at the moment is that it divides after the first
line of text in the text box.

Any ideas please?

Many thanks,

Dan.
  #2  
Old May 24th, 2004, 04:49 PM
Allen Browne
external usenet poster
 
Posts: n/a
Default Moving a line control on a report ...

Stephen Lebans has a solution for this. See:
http://www.lebans.com/PrintLines.htm

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Dan Turner" wrote in message
m...
I have a report with a text box control which can grow as required
depending on the contents of the text box.

I also have a line control in the detail section which divides each
entry on the report.

What I would like to happen is that if the text box control grows then
the line moves as well so as the line splits each entry correctly.

The way it displays at the moment is that it divides after the first
line of text in the text box.

Any ideas please?

Many thanks,

Dan.



  #3  
Old May 24th, 2004, 05:01 PM
Nelson
external usenet poster
 
Posts: n/a
Default Moving a line control on a report ...

Dan,

I am guessing your line is vertical and you want it to grow with the text
box. Try this:

Private Sub Report_Page() 'The OnPage event
ctrlLine.Height = txtBox.Height 'of course change this to your line &
textbox names
End Sub

"Dan Turner" wrote in message
m...
I have a report with a text box control which can grow as required
depending on the contents of the text box.

I also have a line control in the detail section which divides each
entry on the report.

What I would like to happen is that if the text box control grows then
the line moves as well so as the line splits each entry correctly.

The way it displays at the moment is that it divides after the first
line of text in the text box.

Any ideas please?

Many thanks,

Dan.



 




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 01:03 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.