I have a report that displays a list of items that correspond to a list of customers. I want to enclose all the information about each customer in a box. I am able to do this by drawing lines around the information. I have a text box inside the information that is allowed to grow in height to be able to handle more than one line of infomration. My box technique works fine except when there are more than one line in the textbox. I have tried using the following code to make the lines on either side of the box expand with the text box, but nothing seems to work. It looks like the Detail_Format() function runs before the data has been displayed. Any ideas on how to fix this? Thanks!
Private Sub Detail_Format()
rightline.height = Me.Detail.height
leftline.height = txtMyTextBox.height
End Sub
Private Sub Detail_Format()
rightline.height = Me.Detail.height
leftline.height = txtMyTextBox.height
End Sub