Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Looping Question

Status
Not open for further replies.

acsooley

Programmer
Nov 13, 2002
32
0
0
CA
I and creating a online task list for work. Have everything working fine except when I display the results say on one user, I get he has done 12 tasks. (Meeting, Web, Course, Ticket, Ticket, Ticket, Web, Meeting, Meeting, Web, Course) each have a time amount for each task. But when I want it to display:
------------------------------------
Meeting - Total time: 2 hours
Web - Total time: 7 hours
Course - Total time: 1 hours
Ticket - Total time: 8 hours
------------------------------------

I get:
------------------------------------
Meeting - Total time: 2 hours
Web - Total time: 7 hours
Course - Total time: 1 hours
Ticket - Total time: 8 hours
Ticket - Total time: 8 hours
Ticket - Total time: 8 hours
Web - Total time: 7 hours
Meeting - Total time: 2 hours
Meeting - Total time: 2 hours
Web - Total time: 7 hours
Course - Total time: 1 hours
------------------------------------

So I get the totals fine but it repeats all occurnces of task with the total time instead of stopping.

I have a link to a image of a search for users doing a certain task. It lists 3 users and one task with the times but it repeats for users who have done many of one task.

Any Help?

users.jpg

Adam
 
Any one know how to do this? I got everything done with this app and it is ready to launch except for this problem.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top