Unexpected error with a dataconnection

Stephen

Member
Joined
Feb 22, 2006
Messages
15
Programming Experience
Beginner
I have finished working on a VB.Net front end for an Access database and now want to create a setup file using the setup wizard provided with Visual Studio. So that the program can find the database once installed I changed all the OleDbConnections to simply "Database.mdb" after moving the database to the same folder as the program. When using the Test Connection function everything was fine. However when I run the program I get the following error message:

An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in system.data.dll

What am I doing wrong?
 
Am i understanding right when i say you've changed the datasource of the connectionstring to end in 'Database.Mdb' if so then it won't work unless the database is called Database.mdb. If i've got this wrong could you explain further.
 
Back
Top