I guess what I am asking is how do I refer to the cursor. I have a table (whatever.dbf), and a report (areport.frx). I can print the report. I can view the report. I don't know how to refer to the cursor. In your example, you somehow SELECTed the cursor (before the COPY TO)...how did you do that?
>>How do you save the report cursor?
>>
>>Joe
>>
>Cursor is temporary table and you can save it into permanent free table with some particular name which could be used for future retrievals. Basically, you:
>1. Have a folder 'tmpreports'.
>2. Have a table 'RptNames with field 'Name'.
>3. Store report cursor (temporary table from where you type report form) to table using COPY TO ("c:\tmpreports\"+cRptname).
>4. Store report name into Rptnames: INSERT into RptNames Values(cRptname)
Joseph C. Kempel
Systems Analyst/Programmer
JNC