Solved

Raising errors from classes

Posted on 1998-09-16
4
137 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Window placement 17 74
Problem to skip loop 6 54
to transfer string from C lanaguage to VBA 4 56
vb6 - Transfer from MSHFlexgrid1 to xls issue 8 45
There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

929 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now