What is the structure of the table?
Is there a date field? (I'm assuming so)
dtVar="4/../2003"
qbe=query
table.db | driver | datefield | commissions |
| check | ~dtVar | calc sum as theirmoney |
endquery
qbe.executeqbe("newtable.db")
This gets you a summary for a single month.
But if you want a report with a summary showing EACH of SEVERAL months, you
need to have a field that has JUST the month (numeric or alpha, your
preference).
Then you can summarize on that field with query or report.
--
--
Tony
"I woke up and was able to get myself out of bed.
Being that fortunate, what's to complain about?"
_____________
Ken wrote,
Do you know the difference between a table band and a group band ?Quote:> I have a table with daily commissions for each of my drivers. How do I
> a report with summarized monthly totals? I tried grouping by month, but it
> still prints each daily total.
If you want monthly totals only by driver,
do you want
Sort #1 , Driver then month
Driver 1
Jan
Feb
Mar
Driver 2
Jan
Feb
or
Sort #2 , month then driver
Jan
Driver 1
Driver 2
It sounds like you have grouping by month figured out,
but my guess is , you have left the record in the table band, which means it
shows every record in the table.
Eliminate records from the detail table band, and then only the summaries
will print.
This will allow the report to do the summing, and you wont need a summary
query.
Good luck
Robert Wiltshire
1. Keeping Sub-summarries printing together
I've got a layout with a "sub-summary sorted by PA", and I have checked the
boxes "allow part to break ..." and "discard remainder ...". I don't know what
else to do. What I want is a printout that has everyone sorted by PA grouped
together, which I get.
But sometimes, the list of folks associated with a PA goes over to the next
page. The folks that dribble over to the next page don't get that same heading
of "PA" if it is a carryover. Is there a way to get that header to show, or to
move all the groups of sorted PA's to one page so I don't get half on one and
the other half.
I don't want one group of PA's on one page.
--
[Jameson Stalanthas Yu, Shade and Sweet Water, mes amis and Edgerunners]
[Link at http://www-rcf.usc.edu/~jamesony]
[Mutatis mutandis, strive to be humane, not human]
2. Trying to get SQL PLUS 3.1 to run under Windows
3. Reports, reports, reports, reports.....REPORTS!
5. REports and sub-reports in Crystal Reports
10. Free Report ### Free Report $$ Free Report
11. !FREE REPORT FREE REPORT FREE REPORT!
12. !!FREE REPORT FREE REPORT FREE REPORT!!
13. Reports, Reports, Reports !