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  

Shrink text to fit



 
 
Thread Tools Display Modes
  #1  
Old May 20th, 2004, 03:46 PM
Brian
external usenet poster
 
Posts: n/a
Default Shrink text to fit

Is there any way to have text in a report shrink to fit
the field size? I have name badges developed in a report
and I would like the text size to reduce automatically for
names that exceed the width of the badge.
-Brian
  #2  
Old May 20th, 2004, 04:41 PM
fredg
external usenet poster
 
Posts: n/a
Default Shrink text to fit

On Thu, 20 May 2004 07:46:26 -0700, Brian wrote:

Is there any way to have text in a report shrink to fit
the field size? I have name badges developed in a report
and I would like the text size to reduce automatically for
names that exceed the width of the badge.
-Brian


You can code the Detail Format event:

If Len(NameField]) 30 Then
[NameField].FontSize = 12
Else
[NameField].FontSize = 16
End If

A bit of testing will give the best number of characters to use.
Change the FontSize as desired.
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
 




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 12:47 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.