>Hi Jim,
>
>I agree 100%, I am using a view that groups and sorts the data before vfp gets a hold of it. But the view is the data environment. How do I run a report from code?
Let's assume you have a report that lists clients, and that you already erased any table from the report's DataEnvironment.
A sample might be:
select ClientCode, ClientName, CurrentDebt;
from Client;
order by CurrentDebt descending;
into cursor Temp
report form SimpleClientList preview
report form SimpleClientList to printer prompt
Or do you need anything else?
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)