Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Report Print
Message
 
To
27/12/2004 05:12:25
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Environment versions
Visual FoxPro:
VFP 7
OS:
Windows XP
Network:
Novell 4.x
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00969707
Message ID:
00972286
Views:
14
Saif,
Here the code it is only a few rows:
SELECT AgeRep.*,;
       (DAY3060+ DAY6190+ DAY91120+ DAY121150+ DAY151180+ DAY181240+ DAY241365+ DAYOVER365) AS nTotal,;
       NVL(PCode.PName,PADR("Missing PName from PCode",52," ")) AS PName;
       FROM AgeRep;
       LEFT JOIN PCode ON AgeRep.PCode == PCode.PCode;
       WHERE (DAY3060+ DAY6190+ DAY91120+ DAY121150+ DAY151180+ DAY181240+ DAY241365+ DAYOVER365) # 0;
       ORDER BY AgeRep.PCode, Reference, Date,  AgeRep.SalesMan;
       INTO CURSOR cAgeRepo
       
** You can print all rows including empty ines (that ALL DAY.. are zeros) If You remove
** WHERE (DAY3060+ DAY6190+ DAY91120+ DAY121150+ DAY151180+ DAY181240+ DAY241365+ DAYOVER365) # 0
** in SELECT../.

SELECT cAgeRepo
GO TOP
REPORT FORM AgeRep TO PRINTER PROMPT PREVIEW 
USE IN cAgeRepo
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform