Design by Sue
Registered User.
- Local time
- Yesterday, 18:05
- Joined
- Jul 16, 2010
- Messages
- 673
I have a code that needs to be run on click of every button on my switchboard. It checks to be sure that the user has made a selection in a subform on the switchboard that the entire database then works on. If there is no selection there are all kinds of errors. I have created the code as a public sub and referred to it first in each of the button codes. Problem is that I need to "exit sub" if the criteria of the public sub is met (i.e. no selection is made in the subform) - and putting exit sub in the public sub only exits to return to the button code. Is there someway to stop the code from proceeding to the rest of the code in the private sub from within a public sub?
Thanks!
Thanks!