Hi,
Appreciate any help that you can give here... Thanks.
I have this report with 5 textboxes. Each of them is set to "can grow" = true. However, it is also prefered that all the text boxes have the same height. I have the following code... but it does not seem to work.
I am guessing that during runtime of the code, the "can grow" effect takes place AFTER the code. Thus, the "can grow" effect overwrites the effect of the code... just a guess... am I right? How do I get the code to work??? Thanks!
Appreciate any help that you can give here... Thanks.
I have this report with 5 textboxes. Each of them is set to "can grow" = true. However, it is also prefered that all the text boxes have the same height. I have the following code... but it does not seem to work.
Code:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
'Determine the tallest textbox
Dim intMaxHt As Integer
intMaxHt = 0
For i = 0 To Me.Count - 1
If TypeOf Me(i) Is TextBox Then
If Me(i).Height > intMaxHt Then
intMaxHt = Me(i).Height
End If
End If
Next
Me!CSIID.Height = intMaxHt
Me!Attribute.Height = intMaxHt
Me!AuditMethod.Height = intMaxHt
Me!RatingOption.Height = intMaxHt
Me!RatingBox.Height = intMaxHt
I am guessing that during runtime of the code, the "can grow" effect takes place AFTER the code. Thus, the "can grow" effect overwrites the effect of the code... just a guess... am I right? How do I get the code to work??? Thanks!