K
Keith G Hicks
I have some code that is concatenating names together using vbCrLf. I also
tried Chr(13)&Chr(10) which are supposed to be the same anyway. I assign the
names to a string variable and then in the OnFormat of the report detail I
assign the values to the caption of a lable. Trouble is the line feeds don't
end up in there.
Public sEmpNames as String
sEmpNames = ""
loop through the names table...
While ....
if sEmpNames = "" Then
sEmpNames = <next name in table>
else
sEmpNames = sEmpNames & vbCrLf & <next name in table>
endif
...movenext
Wend
In the report I'm simply doing this:
Me.lblEmpNames.Caption = sEmpNames
Like I said, the names appear but all jammed together. I've tried converting
sEmpNames to a function and using it in the source for a text box as well.
Neither strategy works.
The same sEmpNames variable is being used in a bookmark in Word automation
and it comes out fine. What's happening to my line feeds in the Access
report?
Keith
tried Chr(13)&Chr(10) which are supposed to be the same anyway. I assign the
names to a string variable and then in the OnFormat of the report detail I
assign the values to the caption of a lable. Trouble is the line feeds don't
end up in there.
Public sEmpNames as String
sEmpNames = ""
loop through the names table...
While ....
if sEmpNames = "" Then
sEmpNames = <next name in table>
else
sEmpNames = sEmpNames & vbCrLf & <next name in table>
endif
...movenext
Wend
In the report I'm simply doing this:
Me.lblEmpNames.Caption = sEmpNames
Like I said, the names appear but all jammed together. I've tried converting
sEmpNames to a function and using it in the source for a text box as well.
Neither strategy works.
The same sEmpNames variable is being used in a bookmark in Word automation
and it comes out fine. What's happening to my line feeds in the Access
report?
Keith