>On a form I am running there is a button (Command1) which executes a routine in its click event.
>
>I wish to test a condition in the first few lines of the click event and if the condition is true, restore the form to the state it was in before the button was clicked.
>
>What syntax should I use to do this (release? clear?)??
It depends how you define 'the state it was in before the button was clicked'. If you check something in first lines, then it's probably enough to issue RETURN and nothing happened yet.
Edward Pikman
Independent Consultant