If your 3rd arguement was "MyData20" and SQLExec received 3 recordsets, the cursor names would be "MyData20", "MyData201" and "MyData202".
If only one recordset was returned, the cursor would be named "MyData20".
>>When this is done, the value of liResults will be 2 because two result sets were returned (or -1 if an error). The name of the cursors will be CURSOR1 and CURSOR2.
>
>Dan,
>
>So it just increments whatever name you give the cursor? If it was named "MyData20" then "MyData201" would be the second cursor's name?
>
>Renoir