Fields

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a field in a report. Is there a way to when the word is to long for
the field to go to the next row, but shrink the font down so it still fits in
that field just now on two lines?
 
You can use the OnPrint event of the section where the text box is located
in, and check the length of the string, if it's grater the a certain number
change the font size.
Something like

If Len(Me.FieldName) > 10 Then
Me.FieldName.FontSize = 8
Else
Me.FieldName.FontSize = 10
End If
 

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

Back
Top