Remco,
In addition to Christof's and Edward's suggestions, be sure that the cursor is SELECTed. If you have several tables open having the wrong table SELECTed will give VERY strange results.
HTH
Barbara
>Hello,
>
>I'm using VFP6.0 and I'm creating Reports.
>I have the following problem:
>
>I gather my data with a SQL-statement in a form and put that in a Cursor. Then I call the Report and want to use the Cursor to get the information. But I get an error: 'Cannot find alias Cursorname'. I think it's because the form and report each have their own data-environment.
>Is there a way to get around this:
>How can I use the data-environment of the Form for the report? Or is there another clever solution to this problem?
>
>Thank you for your time in advance.