Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing Report
Message
From
15/10/2003 07:11:56
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00838801
Message ID:
00838807
Views:
25
Neil,
what about
>
SELECT modacad.key1, modacad.key2, modacad.moc042, modacad.moc011, modacad.key3, modacad.moc046,modacad.mainkey ;
 FROM modacad ;
 WHERE modacad.mainkey==crsfinal.mainkey ;
 INTO CURSOR crsmatch

select distinct;
 crsmatch.mainkey;
 from crsmatch;
 into curHelp

scan
 select crsmatch
 set filter to mainkey==curHelp.mainkey
 REPORT FORM "c:\Foxpro Projects\Critical Path\critical path report.frx" NOEJECT NOCONSOLE TO PRINTER
endscan
BTW;
avoid open strings like
>REPORT FORM "c:\Foxpro Projects\Critical Path\;
>critical path report.frx" NOEJECT NOCONSOLE TO PRINTER
better would be
REPORT FORM "c:\Foxpro Projects\Critical Path\'+;
'critical path report.frx" NOEJECT NOCONSOLE TO PRINTER
HTH
Agnes

>I have a cursor (crsfinal) with one field in which gives me a list of Codes which is called mainkey. I then run a SQL query which queries on some data in a table and only shows me the information for the mainkey's that are the same. Here is my code:
> I would now like to print 1 report for each mainkey in the cursor crsmatch.
>
>Can anybody help me please?
>
>
>SELECT modacad.key1, modacad.key2, modacad.moc042, modacad.moc011, modacad.key3, modacad.moc046 ;
>FROM modacad ;
>WHERE modacad.mainkey=crsfinal.mainkey ;
>INTO CURSOR crsmatch
>
>REPORT FORM "c:\Foxpro Projects\Critical Path\;
>critical path report.frx" NOEJECT NOCONSOLE TO PRINTER
>
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Reply
Map
View

Click here to load this message in the networking platform