|
-
Mar 8th, 2010, 05:15 AM
#1
Thread Starter
New Member
runtime error -2147467259(80004005)
i am using vb6 as front end and back end as ms access. I have created software on my standlone pc on d: drive . i am using ado connection for connecting to .mdb database. I made .exe of project and created a deployment package using setup factory version 5 software. When i installed this package on d:\ drive then it works fine. but if i installed it on any other drive then it gives me runtime error -2147467259(80004005) and msessage invalid database path. I am using App.path + "\filename.mdb" in the connectivity
i a new and unexperianced one please help me
-
Mar 8th, 2010, 05:16 AM
#2
Thread Starter
New Member
Re: runtime error -2147467259(80004005)
some please help me sort out this runtime error
-
Mar 8th, 2010, 05:26 AM
#3
Re: runtime error -2147467259(80004005)
Are any of the other drives you get the error on mapped network drives ?
In addition, when you get the error, have you verified "filename.mdb" exist at App.path + "\filename.mdb" ?
Worst case scenario add the following line to your code, recompile and validate the path your application is expecting your mdb file to be in:
VB Code:
Call MsgBox(App.Path & "\filename.mdb")
This way you know for sure what the path is and then can verify the file exists at that location.
Edit
Thanks Akhilesh 
I fixed it in my copy/paste as well as it is correct for string concatonation to use & instead of +.
Last edited by Optional; Mar 8th, 2010 at 08:22 AM.
Kind Regards,
Optional
If you feel this post has helped in answering your question please return the favour and Rate this post.
If your problem has been solved and your question has been answered mark the thread as [RESOLVED] by selecting the Thread Tools menu option at the top and clicking the Mark Thread Resolved menu item.
VB6 - (DataGrid) Get the Row selected with the right mouse button
-
Mar 8th, 2010, 07:27 AM
#4
Re: runtime error -2147467259(80004005)
An additional note:
I think, for concatenation, & symbol is better then + symbol...
If my post was helpful to you, then express your gratitude using Rate this Post. 
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet
Social Group: VBForums - Developers from India
Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|