You're missing the "EndIf" after the "If @ERROR", but otherwise, yes - that's the idea.

Each If needs a matching EndIf.

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