Hello all,
I have created a pharmacy application in vb6, i packaged that, itselt has an access database. it works well in my pc, but when i want to send it to another computer, it installs there but dose'nt work there and says: C:// desktop/main/pharmacy.mdb is not a valid path, make sure you have spelled the path name correctly..., What is the problem? my package has all the files needed for the setup, but it dose'nt work. i know this is an old topic, but i really need it, Please help me.
hefaz
3
Hanif Hefaz
Recommended Answers
Jump to Postdo not hardcode your database path.
Just make your setup structure like this:
App.exe (your compiled app)
database\db.mdb (your database)Then on your code where you connect to database, you can do it like this:
App.path & "\database\db.mdb"
thats it. hope it helps.
Jump to Posthow did you create your installer? are you certain that all files are structured correctly?..
have you tried creating your own error handler? so it it will be easy to determine where you will need to fix it.
try to see this; https://www.daniweb.com/software-development/visual-basic-4-5-6/code/336042/easy-code-debugging-prompt_err-function
All 5 Replies
Afghan2
2
Newbie Poster
jhai_salvador
48
Junior Poster
hefaz
3
Hanif Hefaz
jhai_salvador
48
Junior Poster
hefaz
3
Hanif Hefaz
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.