Solved

How do I create an Access report that presents multiple tables from the same dataset?

Posted on 2011-03-06
2
366 Views
Last Modified: 2013-11-28
Hi Access Gurus,

I have a question.  I have a large table of data, but I want to create 3-4 tables in a report that uses that dataset and group the data accordingly.  For example, if I have a table that contains grocery store purchases of products, I want to do grouping by products (milk, eggs) and do it by grocery stores, but I also want to include a report that contains total spend on the same report page.  I'm having trouble doing this with the grouping function in Access.  Is there an Access trick that I am unaware of, or is there VBA that can do this.

The sub report function does not seem to do this because it presents all of the data at once. (ie, you would see all of the spend for all of the grocery stores on one page instead of being able to break it out by grocery store.  Basically I want to be able to have 4 queries from the same dataset that is brought into the report and these tables would present this data.

The report would look like this:

Grocery Store A

Table #1
Store Location, Square Footage, Manager Name

Table #2
Product # of products
Milk 3 Gallons
Eggs 3 Cartons

Table #3
Product Total Spend$
Milk $20.00
Eggs #3.00

Thanks,

MrsMacros
0
Comment
Question by:MrsMacros
2 Comments
 
LVL 18

Accepted Solution

by:
Jerry Miller earned 500 total points
ID: 35050372
Create one main form and have 3-4 sub forms.Base your sub form on a query that uses all of the necessary elements.
0
 

Author Comment

by:MrsMacros
ID: 35050872
Can I do this for an Access report?  In Access Report properties, it only lets me select one table or query.  Can I have the Access report select this form in its property?
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The canonical version of this article is on my web site here: http://iconoun.com/articles/collisions/ A companion presentation is available here: http://iconoun.com/articles/collisions/Unicode_Presentation.pdf
We were having a lot of "Heartbeat Alerts" in our SCOM environment, now "Heartbeat" in a SCOM environment for those of you who might not be familiar with SCOM is a packet of data sent from the agent to the management server on a regular basis, basic…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question