Solved

Raising errors from classes

Posted on 1998-09-16
4
141 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
[X]
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
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
A macro to Count the number of rows across all worksheets 3 151
Determine Range to Select 5 58
Problem to With line 4 76
Publisher:   Unknown     VB.exe Application 1 31
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

730 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