hi i have a program that uses ms access database in vb.net 2003, when i run the program it seems to work fine but if i press a button that uses an openfile dialogbox and try to open again my database the program crashes... it seems that is losing the path... can anyone help me pls? :'(
tripes -1 Newbie Poster
Recommended Answers
Jump to PostYou would have to provide more details. Add the block of code that is causing the problem and also provide the exact error message.
Jump to Postthere that it sais Data source="path" i have inserted the whole path of my database and it works fine now, but i am afraid that it will not work on other pc because path will not be the same...how can i fix it?
On other Pc's is the database always …
Jump to PostThere is no bin folder after deployment installation but as long as the database is in the same folder as the app.exe you can use the Application.StartUpPath method to determine the path to that folder.
Dim strDbFileName As String = "" Dim strDatabaseSource As String = "" …
Jump to PostIn your project properties you will see a settings tab, find out the name of your connection string setting. In coding you simply change it by assigning it a new value
My.Settings.ConnectionString1 = strMyNewConnectionStringVariable
If you need help with how to create a connection string, I can provide more …
All 16 Replies
TomW 73 Posting Whiz
tripes -1 Newbie Poster
tripes -1 Newbie Poster
tripes -1 Newbie Poster
TomW 73 Posting Whiz
tripes -1 Newbie Poster
TomW 73 Posting Whiz
tripes -1 Newbie Poster
TomW 73 Posting Whiz
tripes -1 Newbie Poster
TomW 73 Posting Whiz
mshravs 0 Junior Poster in Training
tripes -1 Newbie Poster
TomW 73 Posting Whiz
tripes -1 Newbie Poster
TomW 73 Posting Whiz
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.