| | |
VB6 Run-time error '53': FIle not not found
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Nov 2009
Posts: 5
Reputation:
Solved Threads: 0
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.
•
•
Join Date: Nov 2009
Posts: 5
Reputation:
Solved Threads: 0
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?
•
•
Join Date: Mar 2009
Posts: 889
Reputation:
Solved Threads: 167
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
Good Luck
If anyone has helped you solve your problem, please mark your thread as solved.
Thanks
Thanks
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:
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
How do you access the database...???
In ADO, an exapmle is:
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
Dim cn As ADODB.Connection Dim rs As ADODB.Recordset Set cn = New ADODB.Connection cn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source= " & App.Path & "\database.mdb;Persist Security Info=False;Jet OLEDB:Database Password=ElE;" cn.Open
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.
•
•
Join Date: Jan 2008
Posts: 255
Reputation:
Solved Threads: 38
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.
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!!!
Be the ONE!!!
•
•
Join Date: Mar 2009
Posts: 889
Reputation:
Solved Threads: 167
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
Good Luck
If anyone has helped you solve your problem, please mark your thread as solved.
Thanks
Thanks
![]() |
Similar Threads
- VB6 - dll file not found error 53 (Visual Basic 4 / 5 / 6)
- Crystal Reports XI in VB6 run-time error 91 (Visual Basic 4 / 5 / 6)
- Run time error '62' - Input Past End of File (Windows NT / 2000 / XP)
- "run time error 53" file not found (Visual Basic 4 / 5 / 6)
- Run time error (Windows NT / 2000 / XP)
- Internet Explore (Run Time Error) HELP!! (Web Browsers)
- TChart - [Fatal Error] File not found: TeeConst.pas (Pascal and Delphi)
- Run-Time Error 424 (Visual Basic 4 / 5 / 6)
- "Run time error, do you wish to debug?" (Web Browsers)
- Run-Time Error..? (Windows NT / 2000 / XP)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: VBA excel - Dynamicly loaded Ribbons?
- Next Thread: maximise form with controls
| Thread Tools | Search this Thread |
Tag cloud for Visual Basic 4 / 5 / 6
* 6 429 2007 access activex add age append application basic beginner birth bmp calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver subroutine table tags textbox time timer urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





