Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Raising errors from classes

Posted on 1998-09-16
4
140 Views
Last Modified: 2012-05-04
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

 
0
Comment
Question by:jd6762
  • 2
4 Comments
 
LVL 4

Expert Comment

by:mcix
ID: 1435234
Is the database class in a separate DLL project or the same?




0
 
LVL 13

Accepted Solution

by:
Mirkwood earned 50 total points
ID: 1435235
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
 

Author Comment

by:jd6762
ID: 1435236
The database class is in the same project.
0
 
LVL 13

Expert Comment

by:Mirkwood
ID: 1435237
If you are using VB4 then Q129799  might also be your error.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question