Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Showing month totals in grouping of report
Message
From
22/09/2008 13:29:28
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Showing month totals in grouping of report
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01349560
Message ID:
01349560
Views:
57
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.
Next
Reply
Map
View

Click here to load this message in the networking platform