Repeating items in Access Report

Posted on 2012-04-11
Medium Priority
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.
Question by:Megin
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
  • 5
  • 5
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37835516

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?
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?

Author Comment

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.
Independent Software Vendors: 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!

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......

Author Comment

ID: 37838647

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.
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...

Author Comment

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?
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.
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)


Accepted Solution

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!

Author Closing Comment

ID: 37875106
I found the answer elsewhere.

Featured Post

How Blockchain Is Impacting Every Industry

Blockchain expert Alex Tapscott talks to Acronis VP Frank Jablonski about this revolutionary technology and how it's making inroads into other industries and facets of everyday life.

Question has a verified solution.

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

In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
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…
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…
Suggested Courses

752 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