Here's my exact code:

If remvar = 3 Then
i = 0
b = 0

Do While Not b = c

Do While Not i = 6

'Do stuff with i

i = i + 1
Loop

b = b + 1
i = 0
Loop
End If

Its the inner Do...Loop that returns the error first - if I remove that loop the other one returns the error.

A few lines above, in the same procedure, there is a almost identical Do...Loop structure that doesn't return any errors...

Has anyone heard of this happening before?

Mafro still