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
"Keith G Hicks" <k...@comcast.net> wrote in message
news:%23wZ%23HlYjK...@TK2MSFTNGP02.phx.gbl...
"Keith G Hicks" <k...@comcast.net> wrote in message
news:%23wZ%23HlYjK...@TK2MSFTNGP02.phx.gbl...
>Never mind. My code for the Word automation was just using vbCr. That wasn't
>enough. I do a Replace in the Access report so that vbCr's become vbCrLf and
>it's all good.
Thanks for letting us know. That would have been a tough one for us
to spot without seeing all the actual automation code.
Armen Stein
Microsoft Access MVP
www.JStreetTech.com
"Armen Stein" <Armen...@removethisgmail.com> wrote in message
news:ffo7k59hvol4m8h56...@4ax.com...