Shrink font size (for lack of a better Subject Line)

D

Dave

Not really a big issue but if there is an easy way to solve:
Text box or memo box. These are set with a desired font size on a Report.
Is there any way for the font size to "shrink as needed" depending on the
amount of text being entered on its source form (actually source table).

This IS NOT important enough for any very complicated or extensive coding.
But if the is a "property setting" or reasonably easy coding I would be
interested.

Thanks for reading
Dave
 
D

Douglas J. Steele

There's no property in Access that will do that, and I don't believe that
the coding would not be that simple. You can check whether Stephen Lebans
has anything at http://www.lebans.com. If he doesn't, then it probably can't
be done.
 
M

Marshall Barton

Dave said:
Not really a big issue but if there is an easy way to solve:
Text box or memo box. These are set with a desired font size on a Report.
Is there any way for the font size to "shrink as needed" depending on the
amount of text being entered on its source form (actually source table).

This IS NOT important enough for any very complicated or extensive coding.
But if the is a "property setting" or reasonably easy coding I would be
interested.


Download the fTextHeightWidth function at www.lebans.com

The code will then be something like:

For fs = 12 To 5 Step -1
If fTextWidth(thetextbox) < thetextbox.Width _
Then Exit For
Next fs
thetextbox.FontSize = fs
 
M

Marshall Barton

Douglas said:
In my defense, Stephen's got that under Forms, which is why I missed it!


No defense needed Doug. Missing something on a site that
has that much stuff is perfectly understandable. ;-)
 

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