pranavnegandhi
New member
- Local time
- Today, 09:28
- Joined
- Feb 16, 2007
- Messages
- 7
The timetracker that I am building stores the history of the task in multiple rows. Here's a simplified view.
Task ID | Assignor ID | Assignee ID | Description | Status
1 | 5 | 10 | I could not make this change. Please try at your end | assigned
1 | 10 | 2 | I made this change. Please check it. | resolved
1 | 2 | 10 | Please make a few modifications. | assigned
1 | 10 | 2 | Done. | resolved
1 | 10 | 10 | Cool. You're in for a raise! | closed
If i want to select task histories of tasks which are not closed, i.e. the status in the last record is not set to closed, how would i go about doing it? As of now I am doing this through code, where I cycle through the recordset and skip displaying the rows if the task has been closed. But I'm sure there's an easier way of doing this.
Any help will be appreciated.
Task ID | Assignor ID | Assignee ID | Description | Status
1 | 5 | 10 | I could not make this change. Please try at your end | assigned
1 | 10 | 2 | I made this change. Please check it. | resolved
1 | 2 | 10 | Please make a few modifications. | assigned
1 | 10 | 2 | Done. | resolved
1 | 10 | 10 | Cool. You're in for a raise! | closed
If i want to select task histories of tasks which are not closed, i.e. the status in the last record is not set to closed, how would i go about doing it? As of now I am doing this through code, where I cycle through the recordset and skip displaying the rows if the task has been closed. But I'm sure there's an easier way of doing this.
Any help will be appreciated.