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 PostHi Tripes, that is fine and not a contradicition. The problem of course is that the wizard generated path is different on your computer then after you deploy. You can still set the database path to something different at run time. Once you create your valid database path at runtime, …
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.