Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Over riding ALL errors

Status
Not open for further replies.

hojo

Computer
Oct 9, 2002
18
Hello all.

I have a database project that uses ADODC's. This program will run on a lot of different computers and therefore the path of the database is not constant. I can overwrite this once the program loads by finding the right pass and chanding the conection string property of the ADODC.

HOWEVER while the program is loading i get an error for each ADODC that the database doesn't exist (i.e instead of C drive it might be D drive for example. As i said above i can correct the path but I want to bypass these error messages so the user doesn't have to press enter 20 times before they can use the program.

Thanks for your help...


Hojo
 
Replies continue below

Recommended for you

Have you tried putting Error Handling in the code, and ignoring those errors which you want to skip?
 
YES. I have attempted to bypass the errors with "ON ERROR GOTO" but the errors seem to be originating before my program actually starts running, therefore no matter how early i put in the error handling the errors still come up.
 
Check on the program error options. From the IDE, it's Tools->Options->General Tab. There is a section on error handling, I would set it to "Break on unhandled Errors".
 
You should remove all links from Data controls to the database (and only load them once the program is loaded.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor