I'm seeking help on a report design.
On the group footer, there are a total of 20 horizontal textboxes. Textbox 1 at top and continues down to 20. This section of the report will display user comments entered from a previous form also displayed in the same format. What I would like it to do is display each textbox whether null or not null until the last "user typed in" textbox and then shrink the rest. This will allow users to space comments if need be and to eliminate that blank page when each textbox is set not to shrink.
Report Layout:
Fixed Page Header
ID Header
Detail
Group Footer
1. [User adds comments here]
This blank line visible
3. [User adds comments here]
and shrink textbox's 4 through 20
Fixed Page Footer
I found this function and tried working with it but couldn't get the array to work like I described above. If you can help, that would be great.
Public Function CanShrinkLines(ParamArray arrLines())
' Pass this function the lines to be combined
' For example: strAddress =
' CanShrinkLines(Name, Address1, Address2, City, St, Zip)
Dim x As Integer, strLine As String
For x = 0 To UBound(arrLines)
If Not IsNull(arrLines(x)) And arrLines(x) <> "" Then
strLine = strLine & arrLines(x) & vbCrLf
End If
Next
CanShrinkLines = strLine
End Function
On the group footer, there are a total of 20 horizontal textboxes. Textbox 1 at top and continues down to 20. This section of the report will display user comments entered from a previous form also displayed in the same format. What I would like it to do is display each textbox whether null or not null until the last "user typed in" textbox and then shrink the rest. This will allow users to space comments if need be and to eliminate that blank page when each textbox is set not to shrink.
Report Layout:
Fixed Page Header
ID Header
Detail
Group Footer
1. [User adds comments here]
This blank line visible
3. [User adds comments here]
and shrink textbox's 4 through 20
Fixed Page Footer
I found this function and tried working with it but couldn't get the array to work like I described above. If you can help, that would be great.
Public Function CanShrinkLines(ParamArray arrLines())
' Pass this function the lines to be combined
' For example: strAddress =
' CanShrinkLines(Name, Address1, Address2, City, St, Zip)
Dim x As Integer, strLine As String
For x = 0 To UBound(arrLines)
If Not IsNull(arrLines(x)) And arrLines(x) <> "" Then
strLine = strLine & arrLines(x) & vbCrLf
End If
Next
CanShrinkLines = strLine
End Function