D
David
Hi, I have an application that connectes using oledb connection to an access
database.
The program works fine in debug and release mode on the developement machine
but cannot locate the database file on another machine when I deploy the
application.
In code, I am using the following lines to make the connection...
temp = System.Windows.Forms.Application.ExecutablePath & "\Datalog.mdb"
Dim myconnection As New
OleDbConnection("Provider=Microsoft.jet.oledb.4.0;Data Source = " & temp)
I tried "StartupPath" also but same problem. On the target machine,the
exception indicates it is looking for the original path from the development
machine and not looking in the application's installed path.
Any help please will be much appreciated.
Thanks
database.
The program works fine in debug and release mode on the developement machine
but cannot locate the database file on another machine when I deploy the
application.
In code, I am using the following lines to make the connection...
temp = System.Windows.Forms.Application.ExecutablePath & "\Datalog.mdb"
Dim myconnection As New
OleDbConnection("Provider=Microsoft.jet.oledb.4.0;Data Source = " & temp)
I tried "StartupPath" also but same problem. On the target machine,the
exception indicates it is looking for the original path from the development
machine and not looking in the application's installed path.
Any help please will be much appreciated.
Thanks