I have some custom validation when the user clicks the "Begin Processing" button on a batch process screen. If the validation fails then I would like the batch process to stop processing the standard code. Can someone please help me on that?
The only way I know of to do this is some variation of the following
- Shift the real Begin Processing button off the visible screen (ie set Left to -1000) and set TabStop to false
- Add your own begin processing button.
- When your button is pressed, do your validation.
- If yiou want to proceed, programatically click the real button.
THe last step can be the tricky one - I have found that sometimes it works and sometimes it doesn't.
Two possible techniques are:-
sivmyapp.controls("The_Button_Name").value = true
and
Call ApplSetFocus("The_Button_Name"")
Call SendKeys(" ",true)
Barry
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,524 Super User 2024 Season 2
Martin Dráb 228,493 Most Valuable Professional
nmaenpaa 101,148