Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Showing month totals in grouping of report
Message
 
 
À
22/09/2008 13:29:28
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01349560
Message ID:
01349564
Vues:
22
It's simple to create SQL either way (one record based or multiple records). I think you may try SQL solution. You can also use group by month in the Report itself with totals.

>I need to show totals in a grouping of a report. This SQL just simply gets the total count meeting the criteria.
>
>SELECT ;
>	COUNT(*) AS DOSCnt ;
> FROM EligAct ;
>	WHERE BETWEEN(EligAct.DOSBegin,THISFORM.DOSBegin,THISFORM.DOSEnd) ;
>	INTO CURSOR ReportCursorSummary
>
>I need to change it, or create another one, that will show a breakdown by month for the same criteria.
>
>Jan: 12
>Feb: 100
>Mar: 325
>
>Or...
>
>Jan: 12     Feb: 100     Mar: 325
>
>I can do the SQL, but what I'm really wondering is if this approach is the best way. If not using MONTH, etc in the SQL fields, what would work well? I need to do it in a grouping due to some shapes in the report that only display correctly if they just come under the last grouping. I need the summary totals to be in a grouping or they will look odd with lots of white space possible between them and the last detail line.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform