I made a vb project and there i use a database as "super.mdb".My database is located at mydocuments. So i used the path(c:\mydocuments\super.mdb)in forms of my project to connect the database with my vb project. After making my project as a setup file, I installed it in my system and it works perfectly. But when i installed it on another system, It says that "can't able to find my database".when I made setup file,I added super.mdb file to package folder.how can I make setup file working properly in another computer.
mahela
0
Light Poster
Recommended Answers
Jump to PostThis is a common mistake when writing a new application.
When you start a new project, create your database in the folder that you have created for the application...
You should then use the path to the database to make sure it works 100%.
path(c:\mydocuments\super.mdb) is incorrect, use the following...
…
Jump to PostIt was apleasure. Please mark this as solved, thanx. :)
Jump to PostSet your connection the same as your recordset. The database should be in app folder as well -
Set db = OpenDatabase(App.Path $ "\super.mdb")
All 11 Replies
AndreRet
526
Senior Poster
mahela
0
Light Poster
mahela
0
Light Poster
mahela
0
Light Poster
AndreRet
526
Senior Poster
mahela
0
Light Poster
AndreRet
526
Senior Poster
mahela
0
Light Poster
AndreRet
526
Senior Poster
mahela
0
Light Poster
AndreRet
526
Senior Poster
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.