By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,327 Members | 2,627 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,327 IT Pros & Developers. It's quick & easy.

Publishing project

P: 469
Problem still exists

I have a program that accesses a database. the *.mdb is in project folder...\bin\debug

i am using the app.path mehtod to acccess the database.

When i publish the program, the database does not get published woth it...?


I have also tried putting the *.mdb file in the project folder (where all toher forms are located) BUT then when i run my database using the app.path method to access the *.mdb file it keeps lookin in project folder\...\bin\debug for it!

access code...

Con = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OleD b.4.0;data source=" & Application.StartupPath & "\FAQs.mdb")

So where should the *.mdb file be saved, and if not in \bin\debug folder, how do i edit the source destinataion in the code above to get it from the project folder instaed?

Sep 19 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.