Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

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

ADO Data control 'database not found' error

Status
Not open for further replies.

culshaja

Programmer
Aug 10, 1999
705
0
0
GB
When I load a form I get a 'database not found' error if I have the database in a different location from that originally developed in. This is due to the control initialising and looking for the database before the form initialise and load events occur. In the form load or initialise event I then reset the connection string argument and refresh the data control and its ok. How can i stop this initial error?<br>
<br>
James :)
 
I think you can use &quot;On Local Error ...&quot; <br>
check the number of error with Err.Number <br>
<br>
Bye
 
You can set the data control properties in code.
 
I set the data control properties in code, but the control initialises before any events fire, so that the error occurs before I can do anything.<br>
<br>
James :) <p>James Culshaw<br><a href=mailto:james_culshaw@activedatasolutions.madasafish.com>james_culshaw@activedatasolutions.madasafish.com</a><br><a href= > </a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top