Hi vbaInet,
Sorry not making myself clear am i. Right let's start again.
Imagine a table with say 100 records in it ordered by a date field. I need to cycle through each record, look at the date and see if there are 6 records prior to it. Obviously the first 6 records wont have 6 prior...