473,386 Members | 1,804 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Stephen Lebans' CanGrow function (Access97)

Hi All,

I'm using Stephan Lebans' nifty code for automatically resizing text
fields to the size required to show (almost) all text in that field
(CanGrow3, thanks Stephen!).

In general this function works great. However, I sometimes have a
problem with the last text line. Often the last line is just below the
end of the field and to view that line I have to scroll to it. Is that
a known problem? And is there a solution?

I've been suggested to insert this in the lostFocus event:

& Chr(13) & Chr(10) &

It obviously takes a little more than that. The code has probably to
be preceded by something else, but what?

Thanks,

Wally
Nov 12 '05 #1
2 2474
Wally, at the top of the Web page for CanGrow is the following
statement:

Use the updated fTextWidth and fTextHeight functions for an accurate
solution.
http://www.lebans.com/textwidth-height.htm is a replacement for the
Report object's TextWidth and TextHeight methods. It is multiline aware
and can work in both Report and Form views.

Did you follow these instructions to use the newer more accurate code?

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Wally" <wr***********@chello.nl> wrote in message
news:d6**************************@posting.google.c om...
Hi All,

I'm using Stephan Lebans' nifty code for automatically resizing text
fields to the size required to show (almost) all text in that field
(CanGrow3, thanks Stephen!).

In general this function works great. However, I sometimes have a
problem with the last text line. Often the last line is just below the
end of the field and to view that line I have to scroll to it. Is that
a known problem? And is there a solution?

I've been suggested to insert this in the lostFocus event:

& Chr(13) & Chr(10) &

It obviously takes a little more than that. The code has probably to
be preceded by something else, but what?

Thanks,

Wally


Nov 12 '05 #2
Thank you Stephen.
No I hadn't seen the new version. I'm sure that I can get this to work
with my forms. Thanks also for posting the other very usefull pieces
of code on your pages.

Cheers,

Wally
to "Stephen Lebans" <St***********@mvps.org> wrote in message news:<yk********************@ursa-nb00s0.nbnet.nb.ca>...
Wally, at the top of the Web page for CanGrow is the following
statement:

Use the updated fTextWidth and fTextHeight functions for an accurate
solution.
http://www.lebans.com/textwidth-height.htm is a replacement for the
Report object's TextWidth and TextHeight methods. It is multiline aware
and can work in both Report and Form views.

Did you follow these instructions to use the newer more accurate code?

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Wally" <wr***********@chello.nl> wrote in message
news:d6**************************@posting.google.c om...
Hi All,

I'm using Stephan Lebans' nifty code for automatically resizing text
fields to the size required to show (almost) all text in that field
(CanGrow3, thanks Stephen!).

In general this function works great. However, I sometimes have a
problem with the last text line. Often the last line is just below the
end of the field and to view that line I have to scroll to it. Is that
a known problem? And is there a solution?

I've been suggested to insert this in the lostFocus event:

& Chr(13) & Chr(10) &

It obviously takes a little more than that. The code has probably to
be preceded by something else, but what?

Thanks,

Wally

Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Patrick | last post by:
I am using Stephans code to change the background color of the Access container in Access 97, the code works fine when running in Access in the normal way. The problem occurs when running the...
2
by: jdph40 | last post by:
Stephen, if you see this post...We are about to upgrade from Access97 to Access 2002. Will either of the downloads from your website (A97MonthCalendarVer91a or A2KMonthCalendarVer91a) work with...
1
by: Alex | last post by:
The JustiDirect text justification on Stephen LeBans site works well but I cannot get it to work on a sub report. Could anyone tell me if this is possible. Thanks. Alex
3
by: Alex Wisnoski | last post by:
I am trying to adapt Lebans' ReportUtilities to export reports (to preserve formatting) from an Access 97 application. I have made the reference to his mde and copied the modules into my db. I...
4
by: Karl Roes | last post by:
Hi Stephen, Very Cool. I can only get it working on the first row of a continuous form. Is this correct? Regards Karl
3
by: Phil Stanton | last post by:
I am trying to produce a program that will output any Access report to an editable Word document. So far it is working well but slowly with text boxes, labels, and lines. I now need to try to...
3
by: Rémi | last post by:
Hello all! I've been using Stephen Lebans' MouseWheel stuff for a number of years now, without problems. I've used on different combinations of Access and Windows, and have had great results with...
8
by: grant | last post by:
Hi I've copied Stephens code into my db, and can get it to work, but only on "plain Jane" reports with no images. Most of my reports has an unbound image obluect in them that I set to an...
3
by: MLH | last post by:
I use Stephen Lebans modReportToPDF. In it is a function declared as Boolean. Inside the FN, there's a line assigning the FN name a value that's not True and not False. I'm thinking that's an...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.