You can do this in the VALID event of the Button:
return thisform.thecontroliwanttoreturnto.tabindex - this.tabindex
Glenn
>Can any one tell me how to set the cursor back to previous text box after I click a command button which is not in tab order ?