That is because the Select was open, then the If was open, then the Select was closed.. the interpreter threw the error because it expected an EndIf before the EndSelect.

It's all about the sequence..

Glenn
_________________________
Actually I am a Rocket Scientist! \:D