cricketbird
Registered User.
- Local time
- Today, 11:27
- Joined
- Jun 17, 2013
- Messages
- 118
I have a subreport that is fairly crowded. The fields are big enough to display four digit numbers, but not larger. This works 99% of the time, but occasionally there's a larger number that turns into #### instead of displaying. On the rare occasion of a large number, I'd like to reduce the font size so there's a greater chance of it displaying correctly.
I tried the following code in the subreport, but it doesn't seem to run. Is there a better way to do this?
I tried the following code in the subreport, but it doesn't seem to run. Is there a better way to do this?
Code:
Private Sub Report_Load()
If [Field1] > 9999 Or [Field2] > 9999 Or [Field3] > 9999 Then
Me.Text1.FontSize = 9
Me.Text2.FontSize = 9
Me.Text3.FontSize = 9
End If
End Sub