>My workmate and I are working on a report and it has a really weird behavior. The report appears to be alright on the print preview screen but if you click on the print button or in the report itself (zoom) then it changes the table selected and display an error message saying variable does not exist. We're calling this report from a button's click event in a form and using the default datasession.
>
>Anybody can give us an idea of what is causing this? If we close the table the report change to, it doesn't fire the error message.
>
>TIA,
>
>Enmanuel
Two ideas:
1) Reports usually work better if you open tables previously, and don't use the report's datasession. If you already do this, make sure that the report doesn't include any table in its datasession.
2) Several users have reported errors if a grid was selected when running the report. If this is the case, try to select another object on your form, and THEN run the report.
HTH,
Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)