June 6, 200619 yr Hi, I'm having some trouble stopping my script from dropping out into the wrong window because I can't seem to capture the error code. I have the Set Error Capture On script step right before the Close Window script step. Right after that step I set a $$Error variable with Get (LastError). The problem is that unless valid data is entered, I don't want the window to close or the script to continue, as it is doing now. Help or an example or two would be much appreciated. Best wishes, Dave.
June 6, 200619 yr Use the Set Error Capture script step just before the step that you want to trap for. and use the Get(LastError) = XXX (XXX equals the error you are trapping for) HTH Lee Edited June 6, 200619 yr by Guest
June 6, 200619 yr Author Thank you, but which script step? The result always seem to be zero. The data validation error should(?) occur after a commit records script step, no? Best, Dave.
June 6, 200619 yr I'm confused as to what you are trapping for. Since you are on a mac, Print the script to Preview and then just select it and copy it to a post. Lee
Create an account or sign in to comment