If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
create one query with totals from seperate tables
My database contains a lot of information and I would like to make one report
containing statistics from 7 different tables. It is mainly just a count of rows from each table, so I can see in one report how far I am through the project eg *150* out of 200 analysed. I want to know how many elements there are, how many interfaces there are, a count of links- all on one report. I appreciate your help. |
#2
|
|||
|
|||
Hi, Ben.
I'm afraid I don't understand based on the information you've given. If these are related tables, create a query that joins them together in a single recordset. Then you can do grouping and sorting on it. If you're looking for summary data, make it a Totals query (View, Totals from query design view). For example, if you had a Sales database, and created a query consisting of a Salesperson, Month, and Amount, and you wanted a report showing the sales of each person by month, you would list the fields in that order in the query, select Group By for the first two columns, and Sum for the Amount column. Access will then calculate a total for each unique combination of Salesperson and Month. Hope that helps. If this doesn't get you where you need to be, please post additional detail regarding your tables and what you'd like your report to look like, and I'll try again. Sprinks "Ben" wrote: My database contains a lot of information and I would like to make one report containing statistics from 7 different tables. It is mainly just a count of rows from each table, so I can see in one report how far I am through the project eg *150* out of 200 analysed. I want to know how many elements there are, how many interfaces there are, a count of links- all on one report. I appreciate your help. |
#3
|
|||
|
|||
I'm sorry I wasn't clear enough. I am a new starter to Access, so I am a
little in the dark. What I would like to do is create a summary report. I want this report to list different fields and a count of the occupied rows in that field. For example, in the report I would like: Number of interfaces: XXXX (this would come from the interface table) Number of linked interfaces: XXX (this would come from the link table between Interfaces and data elements) Number of Data Elements: XXXX (this would come from data elements table) Number of Source/Target: XXX (this would come from Source/Target table) So, in short, the total number of records from various tables is what I would like to show on one report. How can I do this? "Sprinks" wrote: Hi, Ben. I'm afraid I don't understand based on the information you've given. If these are related tables, create a query that joins them together in a single recordset. Then you can do grouping and sorting on it. If you're looking for summary data, make it a Totals query (View, Totals from query design view). For example, if you had a Sales database, and created a query consisting of a Salesperson, Month, and Amount, and you wanted a report showing the sales of each person by month, you would list the fields in that order in the query, select Group By for the first two columns, and Sum for the Amount column. Access will then calculate a total for each unique combination of Salesperson and Month. Hope that helps. If this doesn't get you where you need to be, please post additional detail regarding your tables and what you'd like your report to look like, and I'll try again. Sprinks "Ben" wrote: My database contains a lot of information and I would like to make one report containing statistics from 7 different tables. It is mainly just a count of rows from each table, so I can see in one report how far I am through the project eg *150* out of 200 analysed. I want to know how many elements there are, how many interfaces there are, a count of links- all on one report. I appreciate your help. |
#4
|
|||
|
|||
Hi, Ben.
Since the information is in different, presumably unrelated tables, the easiest way is probably to use subreports, which are nothing more than a report dragged and dropped from the database window onto another report in design view. For each table, create a subreport. Show the Report Header/Footer, and place a textbox in the footer with the Control Source set to: =Count([YourPrimaryKey]) Then begin a blank report, resize the window, and drag and drop the other reports into it. Hope that helps. Sprinks "Ben" wrote: I'm sorry I wasn't clear enough. I am a new starter to Access, so I am a little in the dark. What I would like to do is create a summary report. I want this report to list different fields and a count of the occupied rows in that field. For example, in the report I would like: Number of interfaces: XXXX (this would come from the interface table) Number of linked interfaces: XXX (this would come from the link table between Interfaces and data elements) Number of Data Elements: XXXX (this would come from data elements table) Number of Source/Target: XXX (this would come from Source/Target table) So, in short, the total number of records from various tables is what I would like to show on one report. How can I do this? "Sprinks" wrote: Hi, Ben. I'm afraid I don't understand based on the information you've given. If these are related tables, create a query that joins them together in a single recordset. Then you can do grouping and sorting on it. If you're looking for summary data, make it a Totals query (View, Totals from query design view). For example, if you had a Sales database, and created a query consisting of a Salesperson, Month, and Amount, and you wanted a report showing the sales of each person by month, you would list the fields in that order in the query, select Group By for the first two columns, and Sum for the Amount column. Access will then calculate a total for each unique combination of Salesperson and Month. Hope that helps. If this doesn't get you where you need to be, please post additional detail regarding your tables and what you'd like your report to look like, and I'll try again. Sprinks "Ben" wrote: My database contains a lot of information and I would like to make one report containing statistics from 7 different tables. It is mainly just a count of rows from each table, so I can see in one report how far I am through the project eg *150* out of 200 analysed. I want to know how many elements there are, how many interfaces there are, a count of links- all on one report. I appreciate your help. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem linking tables for a Totals query | Paul Fenton | Running & Setting Up Queries | 2 | April 5th, 2005 09:51 PM |
Calculate a percentage using 2 different query totals | jbeck2010 | Database Design | 18 | March 1st, 2005 12:51 AM |
how create append query with all columns in both tables? | mscertified | Running & Setting Up Queries | 1 | February 18th, 2005 09:38 PM |
How do i create a query which can search for data in many tables?. | Richie1987 | Running & Setting Up Queries | 2 | December 22nd, 2004 04:52 PM |
Query to join records form 2 databases | bdehning | General Discussion | 5 | August 9th, 2004 03:09 PM |