>
wMessBody = wMessBody + CHR(13) + ALLTRIM(STR(ScanGrL.OrdNmb))
>
>When I get time I might compare interpreted chr(13) versus a variable containing chr(13), also transform() versus alltrim(str()) ... just for interest, since you've already undertaken the optimization that matters and any improvement from the above is likely to need vast numbers of rows to make a meaningful difference...
I inherited a bunch of crap code. I don't defend crap, even if I write it.