Hi,

I was wondering if any knows how to specify the patch for the database when making a vb.net program executable. The data base which is access is in the debug folder of the program.
Any Ideas


Thanks
James

Recommended Answers

All 3 Replies

>I was wondering if any knows how to specify the patch for the database

Sorry, I'm not quite following the problem. Can you provide some more information about what are you trying to do?

I need t make my vb.net application executable I have and access database which the system. The database is stored in the debug folder of the project.

When I publish the project it can't connect to the database. any ideas


>I was wondering if any knows how to specify the patch for the database

Sorry, I'm not quite following the problem. Can you provide some more information about what are you trying to do?

Create application configuration file to store database connection string. Make sure that the executables and database file must be placed in a same folder.

I suggest you to use following connection string,

str="Provider=Microsoft.jet.oledb.4.0;Data Source=|DataDirectory|\file.mdb";
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.