Hello, I have a report (rptVVWI) with a subreport (rptVWISubreport) and in the subreport there are 4 controls, the last being an image.
1)txtJobStep
2)txtHazards
3)txtHazardAvoidance
4)imgJobStep
Right now I have it to where I limit the amount of text by 300 caracters and it fits in the code im using in the Subreports Detail OnFormat event but I dont want to restrict the amount of text I can have so how can I,
1) Have the largest control out of txtJobStep, txtHazards, txtHazardAvoidance decide the height of all the controlls for that record/row OR if those controls are no bigger than Height = 1570 then set that record/row to that height. Below is the code im using as of now. Thanks!
Thanks,
SoggyCashew.....
1)txtJobStep
2)txtHazards
3)txtHazardAvoidance
4)imgJobStep
Right now I have it to where I limit the amount of text by 300 caracters and it fits in the code im using in the Subreports Detail OnFormat event but I dont want to restrict the amount of text I can have so how can I,
1) Have the largest control out of txtJobStep, txtHazards, txtHazardAvoidance decide the height of all the controlls for that record/row OR if those controls are no bigger than Height = 1570 then set that record/row to that height. Below is the code im using as of now. Thanks!
Code:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Me.imgJobStep.Height = 1470
Me.txtHazardAvoidance.Height = 1570
Me.txtHazards.Height = 1570
Me.txtJobStep.Height = 1570
Me.imgJobStep.Top = Me.txtHazardAvoidance.Top + 50
End Sub
Thanks,
SoggyCashew.....