C
Curmudgeon
Given a set of tasks:
Summary Task
Task_1 A
Task_2 X
Task_3 A
Task_4 X
Task_5 X
Task_6 A
Task_7 A
Task_8 X
Task_9 A
Needed:
set Summary Task.Date1 = Task_n.Start2 for the FIRST task with X and
Summary Task.Date2 = Task_n.Finish2 for the LAST task with X, ignoring
all other Tasks with X.
The FIRST X is simple enough, but I'm stuck on the LAST X - as I loop
through the tasks, there is no way to know whether a given X is the
LAST X, nor can you do a MovePrevious in such a recordset.
I suppose I could move up/down using SelectCellUp/Down and looking at
the ActiveCell.Task properties, but that sounds a little cumbersome.
Is there a better way? Can somebody suggest a better approach?
Thanks
Dave
Summary Task
Task_1 A
Task_2 X
Task_3 A
Task_4 X
Task_5 X
Task_6 A
Task_7 A
Task_8 X
Task_9 A
Needed:
set Summary Task.Date1 = Task_n.Start2 for the FIRST task with X and
Summary Task.Date2 = Task_n.Finish2 for the LAST task with X, ignoring
all other Tasks with X.
The FIRST X is simple enough, but I'm stuck on the LAST X - as I loop
through the tasks, there is no way to know whether a given X is the
LAST X, nor can you do a MovePrevious in such a recordset.
I suppose I could move up/down using SelectCellUp/Down and looking at
the ActiveCell.Task properties, but that sounds a little cumbersome.
Is there a better way? Can somebody suggest a better approach?
Thanks
Dave