Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select into Command
Message
From
17/05/2002 07:09:02
 
 
To
17/05/2002 06:49:45
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00658059
Message ID:
00658065
Views:
15
The following is just a small sample of a pice of code that will do what you want. (tables involved: service1 and servinv) Service is the header and servinv is the actual line items.

SELECT service.company as 'company', service.order_no as 'orderno',;
servinv.mfg_part,servinv.part_number,servinv.qtyord,servinv.new_used,;
servinv.qtystaged,servinv.tech_no,servinv.tech,servinv.qtyinstall,;
servinv.qtyremaining;
FROM sys2000!servinv INNER JOIN sys2000!service ;
ON servinv.sonum = service.order_no ;
WHERE service.order_no = vOrderno ;
ORDER BY servinv.mfg_part;
INTO CURSOR parts NOFILTER

Produces a list like:

Service Service Servinv

'abc company' '12345' 'partabc' etc.......

Bryan Holmstrom
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform