Click here to Skip to main content
15,887,336 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello
I have created a project in vb6 and access 2007 using ado code in vb6.
I have created a setup and deployment in vb6 but after installing setup on target computer with no vb6. The setup installs csuccessfully. But when i open the program displays database error (path not found).
Please help me with complte details. Also should i use setup and deployment in vb6 or some other program.
Thank you.
Posted

Is the error "Path not found" referring to your access database location. If that's the case, check that your program is referring to correct location and preferably define the location in a configuration file.

Side-note: If this is a new program consider using VB.NET instead of VB6 which hasn't been supported for a long time...
 
Share this answer
 
Comments
thatraja 19-Dec-11 11:05am    
You beat me to it, 5!
Wendelius 19-Dec-11 11:06am    
Thanks :)
Monjurul Habib 19-Dec-11 13:15pm    
5!
Wendelius 19-Dec-11 14:02pm    
Thank you :)
I think you got this error Path not found (Error 76)[^]

I think you have used hard-code path(Ex. F:\Database\db.mdb). If your target machine doesn't contain the F drive then it'll show the above error message.

My suggestion is use App.Path[^]
So your connection-string will be like as below.
VB
Dim strCon as string
strCon = App.Path & "\running2009.mdb"
 
Share this answer
 
Comments
Wendelius 19-Dec-11 11:07am    
Hmm, let me think.......... Yes this is a good answer :) 5'd
Monjurul Habib 19-Dec-11 13:15pm    
5!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900