View Single Post
Old Nov 28th, 2004, 5:03 PM   #1
masanovic
Newbie
 
Join Date: Nov 2004
Posts: 6
Rep Power: 0 masanovic is on a distinguished road
A user is required to select an activity from a combo box, then type in a number of hours in a text box, and then click add. The activity is inserted into the activity listbox, and the hours into the hours listbox. I have code that totals all the hours in the listbox, this works fine. But now I need to add all the hours that I have for particular activites. For example, if i have the following

Activity Hours

Analysis 4
Design 2
Implementation 2
Design 3
Analysis 2
Documentation 5
Design 3

Now I want to add the total number of hours where the activity is say analysis and documentation and put the result in a label. Therefore ignoring the hours that are not those particular activities
masanovic is offline   Reply With Quote