VB6 Run-time error '53': FIle not not found

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Nov 2009
Posts: 5
Reputation: Sorb3t3ro is an unknown quantity at this point 
Solved Threads: 0
Sorb3t3ro Sorb3t3ro is offline Offline
Newbie Poster

VB6 Run-time error '53': FIle not not found

 
0
  #1
Nov 11th, 2009
Hi! I have a VB6 project and I used ms access as my database(Database.mdb), I packed my project including the database, I already install it on my PC, but when I use or run my newly installed VB6 project and type the username and password I got this error: Run-time error '53': File not found. Can somebody explain why I got this error? Please I need help. Thanks.
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 889
Reputation: vb5prgrmr will become famous soon enough vb5prgrmr will become famous soon enough 
Solved Threads: 167
vb5prgrmr vb5prgrmr is offline Offline
Practically a Posting Shark
 
0
  #2
Nov 11th, 2009
Where did you tell your setup package to install your database? Because I believe the path you used to point to your database is incorrect and hence the error you are recieveing...



Good Luck
If anyone has helped you solve your problem, please mark your thread as solved.

Thanks
Reply With Quote Quick reply to this message  
Join Date: Nov 2009
Posts: 5
Reputation: Sorb3t3ro is an unknown quantity at this point 
Solved Threads: 0
Sorb3t3ro Sorb3t3ro is offline Offline
Newbie Poster
 
0
  #3
Nov 11th, 2009
I put it on C:\Program Files\Microsoft Visual Studio\VB98\CSCI15\Package\Support. I aslo include the Setup.ini file setting the path to C:\Program Files\Microsoft Visual Studio\VB98\CSCI15\Package\Support. But still have have the same error. This is my first time to pack a VB6 project with a database. I think there's something wrong with the packaging process. Any help?
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 889
Reputation: vb5prgrmr will become famous soon enough vb5prgrmr will become famous soon enough 
Solved Threads: 167
vb5prgrmr vb5prgrmr is offline Offline
Practically a Posting Shark
 
0
  #4
Nov 11th, 2009
Are you using the PDW? (Package and Deployment Wizard) If so, when you are walking through the steps, there is a screen that allows you to add files (Files are not added automatically when you put them in the support directory, you have to add them.). Use this screen to add the database and to specify where it is to be installed.



Good Luck
If anyone has helped you solve your problem, please mark your thread as solved.

Thanks
Reply With Quote Quick reply to this message  
Join Date: Nov 2009
Posts: 14
Reputation: akhileshbc is an unknown quantity at this point 
Solved Threads: 4
akhileshbc's Avatar
akhileshbc akhileshbc is offline Offline
Newbie Poster
 
0
  #5
Nov 12th, 2009
What kind of connection are you using? DAO or ADO ?

How do you access the database...???
In ADO, an exapmle is:
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. Dim cn As ADODB.Connection
  2. Dim rs As ADODB.Recordset
  3.  
  4. Set cn = New ADODB.Connection
  5. cn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
  6. "Data Source= " & App.Path & "\database.mdb;Persist Security Info=False;Jet OLEDB:Database Password=ElE;"
  7. cn.Open
Look at the 6 line of code...
If the database is residing in the same folder(ie. application folder), then, for example if you have installed in "C:\mysoft" folder,then
App.path & "\database.mdb" gives C:\mysoft\database.mdb
Last edited by akhileshbc; Nov 12th, 2009 at 4:30 am.
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 487
Reputation: abu taher is an unknown quantity at this point 
Solved Threads: 25
abu taher's Avatar
abu taher abu taher is offline Offline
Posting Pro in Training
 
0
  #6
31 Days Ago
ok. what location you give in your project. is it same as what your said?
I like sword. Attack or Defense.
Reply With Quote Quick reply to this message  
Join Date: Nov 2009
Posts: 5
Reputation: Sorb3t3ro is an unknown quantity at this point 
Solved Threads: 0
Sorb3t3ro Sorb3t3ro is offline Offline
Newbie Poster
 
0
  #7
30 Days Ago
I put the support folder inside the package folder here is the complete path: C:\Program Files\Microsoft Visual Studio\VB98\CSCI15\Package\Support. And the database is inside the support folder.
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 255
Reputation: AndreRet is an unknown quantity at this point 
Solved Threads: 38
AndreRet AndreRet is offline Offline
Posting Whiz in Training
 
0
  #8
30 Days Ago
It seems that your connection is looking for the database in the same place as to when you were developing your app. Go make sure that it is still in the same folder on the SAME pc you developed on as to where you have installed onto. In other words, if you installed onto a different pc, the app is looking for a database in a folder the same as to where you saved it on your own pc.
If the installed pc and the development pc is the same, your app. is looking for another file not saved in the correct folder. Check all your files that was added to the setup to your actual developed app.

Hope this help.
Please mark questions as answered when done.

Be the ONE!!!
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 889
Reputation: vb5prgrmr will become famous soon enough vb5prgrmr will become famous soon enough 
Solved Threads: 167
vb5prgrmr vb5prgrmr is offline Offline
Practically a Posting Shark
 
0
  #9
30 Days Ago
To begin with, let me reiterate that just because you put a file in the support folder does not mean it will be included with your setup package! You have to manually add the file when creating your setup package and when you do so you have to specify exactly where you want it to be installed! Then if you have hard coded your path to where this file is located in your code and the file is not installed in that exact same place...



Good Luck
If anyone has helped you solve your problem, please mark your thread as solved.

Thanks
Reply With Quote Quick reply to this message  
Reply

Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



Tag cloud for Visual Basic 4 / 5 / 6
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC