match field size with another

wiremonkey22

Registered User.
Local time
Today, 05:36
Joined
Jan 13, 2008
Messages
68
I have a report with 6 fields in a row, i only want one of them to grow or shrink depending on the amount of words in it. What i need is the other fields in the detail section to match the height of that one field. I have tried to set the height property (me.fieldA.height = me.fieldB.height) ive put this in the report open, load, current, the field itself, with no results. I am using borders on it and have also tried to set the border width. Any idea :confused: Thanks for reading.
 
You would use the ON FORMAT event of the section which the controls are in.
 
I have it in the Detail format event like this, these fields are pulled from a query.

Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Me.CodeNumber.Height = Me.TASK_REF.Height
End Sub

I currently only have the TASK_REF property set to can grow/shrink i want the other fields to size with it, it still wont work, am i setting the wrong property, do all the fields need to be set to grow/shrink, Im not familiar with using the On Format event. Thank you.
 

Users who are viewing this thread

Back
Top Bottom