Exit a Sub/Function Access 2002

  • Thread starter Thread starter Kevin
  • Start date Start date
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
 
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).
 
Back
Top