944,204 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Marked Solved
  • Views: 1709
  • VB.NET RSS
Sep 5th, 2007
0

Database not found error

Expand Post »
I've found that my application does not find my mdb file anymore! I have used a open file dialog box to select the mdb file that I want my app to use and add it to my connectstring via a variable, but although the variable has the correct path to the db, when I'm trying to open my connection to the oledb, it comes back saying that the database cannot be found.

Any ideas?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
bajanpoet is offline Offline
96 posts
since Sep 2006
Sep 5th, 2007
0

Re: Database not found error

Try doing it in hard code and see what happens.
Reputation Points: 22
Solved Threads: 1
Light Poster
matale is offline Offline
38 posts
since May 2007
Sep 5th, 2007
0

Re: Database not found error

I did it in hard code and had no change.

I remembered that I had the "Error List" window minimized, so when I opened it, it was saying that it couldn't find the database - then I realized that somehow, in my Solution Explorer window, the path to my db (that I was no longer using!) was pointing to a 'file' that was where my db was - it was looking there all the time. So I removed the db reference from within my Soluton Explorer and was then able to compile my app successfully.

Because it was looking for a file in my Solution Explorer, none of the changes I made to the db location in code made any difference, but once that reference was removed, I was then able to debug my code as I should.
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
bajanpoet is offline Offline
96 posts
since Sep 2006

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: Threaded Backup Utility
Next Thread in VB.NET Forum Timeline: DataGridView & ClipBoard





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC