A
akidner
I would like to adjust the height of items with in the detail section of an
Access report based upon the amount of data to display.
So far I have got the detail height to adjust by calling this function from
a text box in the detail section of the report. This works BUT not until two
records/rows below the record I want to change!
Private Function SetHeight() As Long
Dim lngMyLen As Long
Let lngMyLen = Len(Me.txtTuesdayAM)
If lngMyLen > 20 Then
Me.Detail.Height = 1100 '567 twips equals 1 cm
Else
Me.Detail.Height = 373
End If
Let SetHeight = lngMyLen
End Function
Can anyone tell me how to correct this or indeed tell me a more simple
approach.
Many thanks.
Access report based upon the amount of data to display.
So far I have got the detail height to adjust by calling this function from
a text box in the detail section of the report. This works BUT not until two
records/rows below the record I want to change!
Private Function SetHeight() As Long
Dim lngMyLen As Long
Let lngMyLen = Len(Me.txtTuesdayAM)
If lngMyLen > 20 Then
Me.Detail.Height = 1100 '567 twips equals 1 cm
Else
Me.Detail.Height = 373
End If
Let SetHeight = lngMyLen
End Function
Can anyone tell me how to correct this or indeed tell me a more simple
approach.
Many thanks.