Hi again
I don't think I've explained myself properly:
if the next record is the same as the current one, total=1, if the next one is the same again total =2, etc.
Then, if the next record is not the same as the previous, total = 0.
The formula given, just gives a series of 1s.
Thanks again...