Hi
I have a simple table a series of times (in # mins from midnight Jan 1st), and categories
time cat
1 a
10 r
12 f
25 h
100 reset
123 h
140 s
And I want to put a 'block number' that adds one each time it gets to 'reset', i.e. giving
1 a 1
10 r 1
12 f 1
25 h 1
100 reset 2
123 h 2
140 s 2
in excel this would be quite simple, with an if(cell 1 up="Reset",cell above+1,cell above), but I have 31m records, so don't want to have to export and reimport this bit by bit if possible
However, I've not got much of an idea in how to do this, or even if it can be done, using an iif in access?