Ed,
Thanks for the help, I think I'm getting closer. I changed from using the dataenvironment of the report writer to using SQL to create the data and that works fine.
I can get a basic report to work but I'm stuck on a report variable.
mout = iif(amount = 0,"Out"," ")
It doesn't seem to like the fact that I'm mixing types, I get a error message "Variable 'Out' not found". Any thoughts on work arounds, I tried numerous things but no success.
Thanks again for your help.
Jim Harvey
jharvey@netrx.net
>
>oF2W.ReportForm("myreport") executes the report MYREPORT.FRX and sends it's output to the Word doc named before. nsuccess contains a non-negative value if it succeeds, negative numbers are errors as listed in the docs. Read the docs; they explain this in detail. You have to learn what it does or you won't be able to use it; each time and place you use it you'll have to configure the reporting environment and FRX2WORD to run the report and create your output per your specs.