I may be misunderstanding what you're after but what about the following:
IF condition met
RETURN
ENDIF
or
DO WHILE condition not met
<other code>
ENDDO
RETURN
HTH
>I have a form executing the click event of a command button. After a certain condition is met, I want to stop execution of the click code and return to the form. I have looked and been unable to find a stop or end command what is used to do this?
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada
cmagee@metroland.comNever mistake having a career with having a life.