Hello, I have been fiddleing around with this all day and cant seem to get it to work correctly. I have a report that has various controls throughout the detail section and one text box in that section can grow. Well in this section with the text box that can grow there is a box around that section and this box is slightly larger in height so it boxes in all the text boxes/controls in that section. I need the box (bxSpecialInstructions) to grow in height when the text box (txtSpecialInstructions) grows BUT always stay slightly taller. I tried the VBA below and it works but the Box isn't constant in its height but always stays taller. How can I get it to work properly? Thanks!
Code:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Me.bxSpecialInstructions.Height = Me.txtSpecialInstructions.Height + 12 * Len(Me.txtSpecialInstructions)
End Sub