473,385 Members | 1,317 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Filtering in Sub Report

I have a Report A, which compute daily sales.
Example:
Date: 18 Jan 06
Pen - 4 pieces
Ruler - 5 pieces
Pencil - 7 pieces

Date: 19 Jan 06
Pen - 3 pieces
Ruler - 5 pieces
Pencil - 2 pieces

Another sub report, Report B, which compute the average sales.
Report A and B, both uses a same query
I need to combine Report A and B to form Report C.

Report C:
The main content is from Report A, displaying the Daily Sales over a
period (monthly)
At the Report Footer of Report C, i need to display the average sales
which is Report B, with the same period used for Report A.

I cannot figure out a way to do it.

Any suggestions?
Thank You.

Jan 18 '06 #1
1 1640
pe********@gmail.com wrote:
I have a Report A, which compute daily sales.
Example:
Date: 18 Jan 06
Pen - 4 pieces
Ruler - 5 pieces
Pencil - 7 pieces

Date: 19 Jan 06
Pen - 3 pieces
Ruler - 5 pieces
Pencil - 2 pieces

Another sub report, Report B, which compute the average sales.
Report A and B, both uses a same query
I need to combine Report A and B to form Report C.

Report C:
The main content is from Report A, displaying the Daily Sales over a
period (monthly)
At the Report Footer of Report C, i need to display the average sales
which is Report B, with the same period used for Report A.

I cannot figure out a way to do it.

Any suggestions?
Thank You.

You provide no reason to have report C, which basically is a combination
of A and B. Unless you need to keep them separated.

You also provide no reason why the report B, in C, fails. So I'll be a
"great seer" and divine your reason for failure. Maybe it's because the
report footer is a poor place to put ReportB. I don't think report
footers grow or if they do they may not have the length to grow much.

So here's how I would handle it. I use this tip for creating
multi-column reports. I add another column to the query. In your case,
add one to report A. Call it Master:"M" for example. Now, under
Grouping/Sorting in the menu I create a new group called Master. I
create a footer for the MasterBand. (for multicolumn reports I create a
header and put my column heading(s) there). In the footer band for
Master drop the subreport.
Jan 18 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Corey | last post by:
All, I am relatively new to XML and I have what may sound like a dumb question. I want to pass a query string variable to my xml document and filter the output based on that variable. For...
5
by: Richard | last post by:
Hi, I have a form that take some time to load due to many comboboxes and at least 8 subforms. When I filter or sort the main form I get an error message and then Access shuts down. They ask if...
1
by: diskoduro | last post by:
Hi! I'm trying to get help to an unexpected problem that has appeared while I was writing a new application. I want to opeon a report of product sales by filtering previously from a listbox in a...
0
by: Scott Loupin | last post by:
I've got two databases with similar data in them (WestSide and EastSide). I've set up two identical reports that is filtered by date and the client name. I'm using one form to do the filtering. ...
15
by: Richard Hollenbeck | last post by:
I tried to ask this question before on the 14th of January but I never got a reply. I'm still struggling with the problem. I'll try to rephrase the question: I have a crosstab query with rows...
1
by: mstery | last post by:
I have a report generated via an ID selection made in a dropdown on a form. The report filters by an on click event in a preview report button on the form. Everything in the report, including...
6
by: Ray | last post by:
Hi all, While I use the ReportDocument of vb.net to set filter to the data to the Crystal Report, it is successful for the first time while running the program. However, for the second time while...
3
by: iamguyster | last post by:
Hi, I have an exercise I need to give to my pupils (I'm a teacher!) and I am trying to get a query working preferably using the query design view, without having to edit the SQL. The query involves...
3
by: paquer | last post by:
On my Main form I have a Command Button that opens a Subform in order to create a new Subform record. At this point I want the subform to show only the new record being created. Not all the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.