Exit a Sub/Function Access 2002

K

Kevin

Are you returning anything from the function? If not,
declare the function as type boolean. In the function, if
the conditions you need to be met are met, set the return
value on the function to True (i.e. Function Name=false,
Function Name = True), otherwise set it to false. In the
calling sub routine, test the return and exit or continue
as appropriate.

Hope this helps!

Kevin
 
J

John Spencer (MVP)

Pass the name of the calling sub as a string into the function. Other than that
I don't know of a way to know which sub, function, or macro called a function
(or a sub).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top