Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Showing month totals in grouping of report
Message
 
To
22/09/2008 13:29:28
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
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:
01349579
Views:
18
>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.

Can you be more specific about what the report looks like ... what the data driving the report looks like ... and exactly how you want these totals to look on the report. There are several ways to come up with totals by month, but I need to know more about what you're trying to achieve to give you the best solution.
Cathy Pountney, Microsoft Visual FoxPro MVP
Memorial Business Systems, Inc. (www.mbs-intl.com)

My Website: (www.frontier2000.com)
My Blog: (www.cathypountney.blogspot.com)
My Book: The Visual FoxPro Report Writer - Pushing it to the Limit and Beyond
Free MSDN Article: What's New in the VFP 9.0 Report Writer
Free MSDN Article: The VFP 9.0 Report Writer In Action
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform