Web Development
9 replies
by donq
No, build a SELECT query that delivers whatever is needed (including filters) and base the report's Record Source on the query name.
Keep it simple!
by tumphrey
by whyong
i think actually you can using the report grouping to display your report.. in the report design mode, select the sorting and group, and select acct as a group, then you can display you report grouped by acct...
hope it will help.
by tumphrey
by bob sellman
You could use a cross tab query to drive the
report. Look in the Access help references
and the samples for a sample of a report
based on a cross tab query. I've done it and
it works, but it's a pain to get working
correctly.
I think the easiest solution is to use a
regular select query to drive the report.
Set the sorting/grouping in the report so the
last item is the acct and there is a footer
for that item.
Set your detail to visible = false. Set the
format code for the detail so that the number
of the month is checked and then the entrie
is added to that month's control in the acct
footer. (If there is definitely only one
value for each acct/month combination, then
just set the appropriate control to the valueof the entry.) When the acct is about the
change, the footer is printed with the
correct values. If you have added values
into the controls, be sure to reset to 0
after printing. (You could do this in the
format function of a non-visible/non-printing
header for the acct.)
Using this method also allows you to make the
report work for a varying range of months by
determining the starting and ending months of
the data (perhaps in public variables passed
to the report) so you can set the heading
correctly. That way you can report on a
"moving" 12 month period.
by tumphrey
by edm
IF I understand you correctly, there is an easier way- one that does not involve coding.
With the report in Design mode, right-ckick on the Ruler at the top, and select Sorting and Grouping.
Create a group with header and footer for the account and then add another for month (again withe header and footer), and finally add Date without header and footer.
Those group sections will be added to the report.
You may need to tweak the report's record source to get the Month variable.
by tumphrey
by tumphrey
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending