Hi Folks
I would like to know how do raise custom exceptions in VBA and halt execution of any subsequent code.
In my case I have various public functions which check for certain information in the database, I am calling these functions from a command button whereever suitable, but what is happening is that whenever these functions find descripencies they display an error msg and exit from their own function but the subsequent code in the command button sub continues to execute, how do I raise an exception in a public function and handle it in a sub which calls this function.
Thanks much for your help
Brenda
I would like to know how do raise custom exceptions in VBA and halt execution of any subsequent code.
In my case I have various public functions which check for certain information in the database, I am calling these functions from a command button whereever suitable, but what is happening is that whenever these functions find descripencies they display an error msg and exit from their own function but the subsequent code in the command button sub continues to execute, how do I raise an exception in a public function and handle it in a sub which calls this function.
Thanks much for your help
Brenda