Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Report Print
Message
 
À
27/12/2004 05:12:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Versions des environnements
Visual FoxPro:
VFP 7
OS:
Windows XP
Network:
Novell 4.x
Database:
Visual FoxPro
Divers
Thread ID:
00969707
Message ID:
00972286
Vues:
15
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform