Solved

Repeating items in Access Report

Posted on 2012-04-11
10
276 Views
Last Modified: 2012-04-21
I am working on an Access report and have something happening in it that I don't know how to fix, and I am not sure why it is happening.

The report lists subtasks, employees, and activities done under particular subtasks.

In the version I am attaching, you can look at rpt_Weekly. For the date, put in 4/6/12.  Scroll down to Jacob Ladder, Aunt Jamima and Susan Summers. In their tables, they have the item "Went to Neverland" listed once. This thing was done by each of them one time. However, in the report, it lists the activity three times for each person. I don't know what to do.

Thank you for all the help!  I am sure some of you looking at this have seen me post a lot of questions in the last couple of weeks. I am very grateful for all the assistance you all have been giving me.
DatabaseDemo.accdb
0
Comment
Question by:Megin
  • 5
  • 5
10 Comments
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37835516
Again,

I honestly am confused as to why your report is a complex as it is...
(Sub reports inside Header sections of a grouped report???)

Are you quite sure it is designed in a way to give you what you want?
Are you quite sure the query running the report outputs the raw data in a way that the report can display this in the way you want...?
(You have a lot of left and right joins there...)

What is the ultimate goal of this report?
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37835528
Are you sure that the table relationships are correct?
How are you relating the employee to anything?
What about the stgroups table?
0
 

Author Comment

by:Megin
ID: 37838299
I thought it might be getting too complicated. Let me give you a rundown on what everything is.

tbl_Employees: Just a list of all employees who work for the company

tbl_Activities: List of different activities that anyone can do as part of their job. This is tasks and meetings. Tasks and meetings must be differentiated, however that is not done in this table.

tbl_actType: This table just contains the two different types of activites: tasks and meetings

tbl_TaskOrder: This is the way be do billing. There are task orders, and ever task order has a number of subtask orders. This table only has the task order no. and the title (along with the id, of course)

tbl_SubTaskOrders: I begin some combining in this table. This has the subtask orders with the id numbers from tbl_TaskOrder to connect each subtask order to its task order.

tbl_stgroups: This is the table that links employees to particular subtask orders. A subtask order can be just one person or a team. This table connects every employee with a subtask order. stgID is the number that ids that connection.

tbl_ActCmb1: This table is where all the action is. My reports are based on this and information from the forms mostly dump information here. It combines the task order ID, subtask order ID, actID, the actTypeID and the date.

The report I pull up is a weekly report that must have the Task Order, followed by the Subtask Order, with a list of those who work on that subtask order, followed by the activities performed by that subtask order, differentiated into task and meeting.

I have the user work with two different forms (this could change, I don't think it is the best way to do things). The frm_Weekly_Act_2 and frm_Weekly_mtg.

When I first started working on this, I couldn't get the subtask order employee names to list together correctly along with the tasks. I needed them to show up like they are now. Then I need the activities to show up in lists the way they are, without the duplicates. I tried different methods and most left me with either the employees names repeating per every activity or the activities showing up wrong. I was given the advice to add them as subforms, which worked just fine until I got to this weird problem with the new duplicates.

The query everything runs from is the Qry_Weekly_Report. It has all the information that I need for the report, with the exception of the employee names. Those are added with the subform. I suppose I probably don't need the actName in that query either.

I need to be able to pull up weekly reports and monthly reports. I also need to be able to pull up reports based on subtask orders and based on task orders alone.

I think that is it. My intent was to create tables that were normalized properly. Design is not my specialty, to say the least.


I can't thank you enough for all the help here.
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37838575
You are never quite stating what this report is seeking to display, or it's purpose...?

Perhaps it would be easier if you posted a graphical representation of the *exact* output you are looking for based on some subset of the data in your db......
0
 

Author Comment

by:Megin
ID: 37838647
Okay.

I am attaching a sample of the report that this database needs to create. It is the excel spreadsheet that I am basing my work on. The final result can vary slightly from the one I am posting here, but only slightly.

The purpose is to submit an invoice to the company we consult for the work we do during the week. We also need to create a monthly report.

Please let me know if this helps.
Sample-of-Report.xlsx
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37838914
Sorry, this is still not clear...
I'll *try* to work up a simple sample of how something like this might be done...
0
 

Author Comment

by:Megin
ID: 37838975
I appretiate you helping me. I am not sure how to make this more clear. But, I will try again.

I work for a subconsultant. We bill to our client. Our contract is defined in terms of Task Orders and Sub Task Orders. Every Task Order is divided into Sub Task Orders. Every staff member is assigned to one or more Sub Task Order.

The report we send to the client every week and again once a month, is a summary of all activities that were done during that week. It has to list the task order, the sub task order, the staff and the activities.

Does this help?
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37839452
Again, I think, (and this is IMHO), this report seeks to show too much data...

Remember, I know very little about your business rules here:
Can one employee have many tasks?
Can one Task have many Employees?
Are employees assigned to a task, or a subtask?
What is the "310"
How does the "Permitting Manager" fit into all of this.
Is the underlying query even outputting the data correctly to give you what you need.
...etc
in other words, there is just too much here that needs to be considered...

Again, I have never seen a Grouped Report with subreports in the various Header sections...?)
(certain info in the group will not be available when the header displays...)

I have attached a basic sample of how I might do something like this.
You can comment on this if you like, or integrate bits of it in your design.

In the end you may have to step back from this and *first* do some research on Report design.
(Sorting, Grouping, Sub reports, Report sections and properties, ...etc)

JeffCoachman
Database110.mdb
0
 

Accepted Solution

by:
Megin earned 0 total points
ID: 37853554
Thank you, Boag2000.

I ended up moving my activity name field into the details section and selecting the option to hide the duplicates. That ended up working just fine.

Thank you for all the time you put into trying to help me!
0
 

Author Closing Comment

by:Megin
ID: 37875106
I found the answer elsewhere.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

747 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now