With a .SetFocus event in the Form Refresh, it'll always reset to the doc_date1 field when a Refresh is sent. Get rid of that line for the Form to respect the natural Tab order *or* wrap it in a conditional phrase (IF...ENDIF) if there is some reason that you do want that control to receive focus.
>Hi,
>
>About the FORM's refresh.
>
>At my "REFRESH" in my form as below :
>...
>...
>thisform.doc_date1.setocus
>...
>...
>
>
>And i had a field in that form, i will check the data after the user entry this field. and then i need to refresh the screen.
>BUT AFTER THE SCREEN HAD REFRESH....THE CURSOR WILL GO BACK TO "DOC_DATE1" LOCATION.
>
>can you tell me :
>1. how can i keep stay at this field after REFRESH and don't go to "DOC_DATE1"
>
>2. how can i go to the next field in "tab order".
>
>Thanks alot
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05