Any way for a field to grow "up"?

C

Carl Rapson

I'm designing a report based on a paper report, and I have a question about
Can Grow. One of the fields is a memo field, and can contain several lines
of text. On the paper report, the memo field extends "upward" within the
record, and the contents of the other fields are located at the bottom of
the fields (I hope that's clear). I know that I can turn on the Can Grow
property and have the memo field grow, but it will grow "down", and the text
in the other fields will be at the top of the fields. Is there any way to
have the memo field grow "upward" to reproduce the paper report's look? I
can live with the default functionality, but I am wondering if there is a
way to do it.

Thanks for any assistance,

Carl Rapson
 
M

Marshall Barton

Carl said:
I'm designing a report based on a paper report, and I have a question about
Can Grow. One of the fields is a memo field, and can contain several lines
of text. On the paper report, the memo field extends "upward" within the
record, and the contents of the other fields are located at the bottom of
the fields (I hope that's clear). I know that I can turn on the Can Grow
property and have the memo field grow, but it will grow "down", and the text
in the other fields will be at the top of the fields. Is there any way to
have the memo field grow "upward" to reproduce the paper report's look? I
can live with the default functionality, but I am wondering if there is a
way to do it.


No native capability for this, but if you use the
TextHeightWidth function at www.lebans.com, it not too
difficult. First, make the detail section the appropriate
size to get the desired controls at the bottom of the area
you want them in. Then add a little code to the detail
section's Format event procedure:


lngHeight = fTextHeight(txtmemo)
Me.txtmemo.Top = Me.Section(0).Height - lngHeight
 
C

Carl Rapson

Marshall Barton said:
No native capability for this, but if you use the
TextHeightWidth function at www.lebans.com, it not too
difficult. First, make the detail section the appropriate
size to get the desired controls at the bottom of the area
you want them in. Then add a little code to the detail
section's Format event procedure:


lngHeight = fTextHeight(txtmemo)
Me.txtmemo.Top = Me.Section(0).Height - lngHeight

Thanks, Marshall. I'll give it a try.

Carl
 

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