>>You can use TEXTMERGE. See corrections inline
>the TextMerge provides the proper text, but the macro fails - what am I missing here?
What error do you get? For troubleshooting, you can put value created into clipboard and than past into the command program or prg.
_CLIPTEXT = lcSqlStr
--sb--