Raising errors from classes

I am trying to raise an error in a class and trap it in the interface portion of the code.  

I created a database class.  
There is an on error goto statement in the login form.
If there is an error opening the DB (file not found for an MDB) , I raise an error and would like to process it in the login form.  However VB5 displays the error message as if there is no on error statement.

I am on NT4.0

 
jd6762Asked:
Who is Participating?
 
MirkwoodConnect With a Mentor Commented:
If you are running in the VB IDE, make sure that the break option in Tools\options\general is set to break on unhandled errors only.

0
 
mcixCommented:
Is the database class in a separate DLL project or the same?




0
 
jd6762Author Commented:
The database class is in the same project.
0
 
MirkwoodCommented:
If you are using VB4 then Q129799  might also be your error.
0
All Courses

From novice to tech pro — start learning today.