This means that you have an If Then statement and the coding doesn't get to the end statement. It may be that you are missing or have missplaced an end statement, or it may mean that you have some other error in your coding which prevents it from getting to the end statement. For example I once had a select case statement within an if then statement and forgot the end select statement and got this error.<BR><BR>Good luck on the debugging.<BR><BR>Dennis Branson
I have a tip that could help you avoid this in the future:<BR>when I'm coding I indent code between my if, else, end if etc. like this:<BR><BR>If something then<BR> do this<BR>Else<BR> If this then<BR> do that<BR> Else<BR> do nothing<BR> End If<BR>End If<BR><BR>That way I know I've closed off all my if statements etc.