Wrox Programmer Forums
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 19th, 2009, 03:12 AM
Registered User
 
Join Date: Jan 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default project.exe

Dear Friends i have made application and is working properly but the only problem is that i am not able to make a exe file of the project. I have stored the project and the database file in the F drive of my hard disk. The database i have used is MS Access 2007. Here is the connectivity code i have written

Set objconn = New ADODB.Connection
objconn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.3.51;" & _
"Data Source=" & App.Path & "\" & "garage.mdb"
objconn.Open

Set rscoupon = New ADODB.Recordset
rscoupon.Open "Coupon", objconn, adOpenDynamic, adLockOptimistic

Set rsproduct = New ADODB.Recordset
rsproduct.Open "Product", objconn, adOpenDynamic, adLockOptimistic


The error i am getting file making the exe file is
Run time Error'-2147467259 (80004005)';
Couldnt find file 'C:\Documents and settings\GOLDWINGS\Destop\garage.mdb'.

Please can someone help me
 
Old January 19th, 2009, 03:39 AM
Friend of Wrox
 
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

Quote:
Couldnt find file 'C:\Documents and settings\GOLDWINGS\Destop\garage.mdb'.
Well, that is pretty clearly telling you that App.Path is C:\Documents and settings\GOLDWINGS\Destop

If that's wrong, then of course that's the problem.

**********

p.s.: Destop????? Shouldn't it AT LEAST be DesKtop ??
 
Old March 21st, 2009, 05:14 AM
Authorized User
 
Join Date: Mar 2009
Posts: 49
Thanks: 0
Thanked 8 Times in 8 Posts
Default

Somewhere you have a reference to the MDB that is incorrect. Are you using an ADO/DAO/RDO control?

An easy way to fix this is to open up your .frm file in notepad and search for that string. If you find it, change it to the correct path.

Good Luck





Similar Threads
Thread Thread Starter Forum Replies Last Post
how to make an .exe file of a vb project arshad mahmood VB Databases Basics 3 March 9th, 2009 12:09 AM
How to make a single EXE of a VB project amarjits Pro VB 6 1 January 17th, 2007 08:48 AM
Membership: aspnet_sql.exe -> aspnet_regsql.exe ricpue BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 August 9th, 2006 11:40 PM
problem creating .exe from MFC AppWizard(exe) c++ method Visual C++ 0 July 7th, 2006 03:28 AM
PHP5 and php.exe php-cgi.exe php-win.exe freddo Beginning PHP 1 August 16th, 2004 09:28 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.