I think this has to do with the script trigger you are using. I assume you are using OnObjectExit. When it exits field1 it automatically goes to the next tab order field (field2) before the scripts runs. I used OnObjectModify to triggers the script.
Thank you. Your suggestion worked just fine. I've used OnObjectExit, On ObjectValidate, OnObjectSafe but never tried OnObjectModify. Again, thank you for taking the time to answer.
OnObjectExit would have worked for you had you included this script step:
Exit Script [False]
that will cancel out the exit field action that triggered the scritp and which will otherwise be performed after the script execution completes. You can look up script triggers in FileMaker help to learn which triggers can be affected by this script step.
Hi, PhilMod_Junk. Your sugestion works better. With SChamble's advise I was able to go to the desired untabbed field but I could not get a replace value on the field I had just left. Your advise does both. Thank you for your time.