The module is as follows:
Public Function CanShrinkLines(ParamArray arrLines())
' Pass this function the lines to be combined
' For example: strAddress =
' CanShrinkLines(Name, Address1, Address2, City, State, Zip)
Dim X As Integer, strLine As String
For X = 0 To UBound(arrLines)
If Not IsNull(arrLines(X)) And Trim(arrLines(X)) <> "" Then
strLine = strLine & vbCrLf & arrLines(X)
End If
Next
' remove leading carriage return/line feed
CanShrinkLines = Mid(strLine, 3)
End Function
I am using > in the Format of the Property Sheet for the Text box where I use CanShrinkLines.
The control source is as follows:
=CanShrinkLines([LastName]+", "+[FirstName]+" "+[Degree],[Location Name],[Address1],[Address2],[City]+", "+[State]+" "+[Zip],[Voice Phone],[Specialty_Description]+" "+" Gender: "+[Provider Gender],"NPI: "+[Provider NPI],"State Lic: "+[STATE_LIC]),[Handicap
Accessible],"Office Language: "+[Languages at Location Level])
When I added State Lic, for some, everything after NPI is lower case. It is random through out the report.