A
Alan Z. Scharf
I want to loop through the collection of controls on a report so that I can
set the font size of each depending on the [Pages] count in a Report Header
OnPrint event.
My code below produces "Object doesn't support this method"
Can someone help with proper syntax please?
Thanks.
Alan
Code
------
Private Sub PageHeader0_Print(Cancel As Integer, PrintCount As Integer)
' Reduce font size to 10 from present 11 for all fields if page count >
2
If [Pages] > 2 Then
Dim col As New Collection
Dim ctl As Control
For Each ctl In Me.Controls
Me.Controls(ctl).FontSize = 18
Next
End If
End Sub
set the font size of each depending on the [Pages] count in a Report Header
OnPrint event.
My code below produces "Object doesn't support this method"
Can someone help with proper syntax please?
Thanks.
Alan
Code
------
Private Sub PageHeader0_Print(Cancel As Integer, PrintCount As Integer)
' Reduce font size to 10 from present 11 for all fields if page count >
2
If [Pages] > 2 Then
Dim col As New Collection
Dim ctl As Control
For Each ctl In Me.Controls
Me.Controls(ctl).FontSize = 18
Next
End If
End Sub