Solved

creating report from table

Posted on 2011-09-28
2
205 Views
Last Modified: 2012-05-12
Hello,
have attached a sample db.
if you look at the table [tblFinal]
I need to create a report from that table- that displays like rptTest-but that works-
I created a crosstab query to create this report- but not sure this is how to do this-
in rptTest- i have a total field that is empty
i need a total field column to total all the weeks totals for each record.
and am trying to capture 1 week of data in report-
thankyou

db1.mdb
0
Comment
Question by:davetough
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 5

Accepted Solution

by:
Khalid Mehmood Awan earned 250 total points
ID: 36776230
Try this query...


SELECT  name,  round( sum(totalhours) , 2)
FROM tblFinal Group by  name


You can use this query to create a report.
For testing this query Goto Create then Query Design then add table then right click on query name (small tab) and goto SQL view.
0
 
LVL 74

Assisted Solution

by:Jeffrey Coachman
Jeffrey Coachman earned 250 total points
ID: 36812743
The issue with Crosstab "Reports" is that they hardcode the column headings

This means that if you run the report and 8/21/2011 is not in the dataset, the report will fail.
The same issuse arises when you have a new date, since it is not in the original report, it will fail.
See here for more info:
http://www.experts-exchange.com/Microsoft/Development/MS_Access/Access_Coding-Macros/Q_24577123.html

You can create a "Dynamic" Crosstab report though...
http://support.microsoft.com/kb/328320
...But this is way too complex IMHO.

It might just be best to leave it as a crosstab query.

Finally an alternative may be to do this in a Pivot table.

JeffCoachman
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

763 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