Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Report Data Sources
Message
De
08/08/2000 19:37:30
 
 
À
08/08/2000 19:08:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00402582
Message ID:
00402588
Vues:
9
>I am relatively new to database programming and need to know how to make a report work in FoxPro. I have a table with a date field and an amount field. My goal is to create a report that will let me select a date range and print the total number of records and a sum of the amount fields for EACH DAY within that range.
>
>I was thinking about using a Select - SQL statement to retrieve the information into a temporary cursor and then work with it from there using report variables.
>
>Am I on the right track?

Sure are.
SELECT SUM(amount) AS sumbydate, otherfields ;
       FROM yourtable ;
       WHERE BETWEEN(yourdate,lowdate,highdate) ;
       GROUP BY yourdate ;
       INTO CURSOR reportcursor
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform