Wrox Programmer Forums
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA 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 June 11th, 2003, 01:25 PM
Registered User
 
Join Date: Jun 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Diahann Send a message via Yahoo to Diahann
Default MS Access and VBA Error

I am trying to open a form in MS Access 2000 with some record navigation vba code embedded. The error I am receiving is "Error accessing file. Network connection may have been lost." The file is however not on the network it is on my own hard drive so this could not be the error. Has anyone encountered and conquered or dodged this problem? Any help is much appreciated.
 
Old June 11th, 2003, 02:53 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
Send a message via ICQ to SerranoG Send a message via AIM to SerranoG
Default

Quote:
quote:Originally posted by Diahann
 The error I am receiving is "Error accessing file. Network connection may have been lost." The file is however not on the network it is on my own hard drive so this could not be the error.
 My first guess is that although your form is stored locally, it has a control source to some linked table. The linked table is on a database that is on the network. Did you check the form's control source? Is the table it wants local or on the network? Is the form based on a query that has a linked table in it?

Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division
 
Old June 13th, 2003, 07:46 AM
Registered User
 
Join Date: Jun 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Diahann Send a message via Yahoo to Diahann
Default

That would be the logical answer, but, everything is on my c drive with all the required tables in the one database with the form, which makes this one of the strangest things I have seen recently.

D...
 
Old August 14th, 2003, 05:18 AM
Registered User
 
Join Date: Aug 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I got the same error code, first in Excel when i using vbaunit, and next in word and access. Only visio has no error.
The cause is that, when i open a file in office 2000, not all of the reference files, such as msforms and vbide, get properly ready for use.
When i count the references in initial proc such as thisworkbook_open, the count amounts 4. but it amounts 6, when i submit count proc by hand after i opened the file.
Now, after i open the file, i am always forced to submit by hand a proc that removes MSForms and adds it again to restore references.
I hope this error may already have been fixed in office xp.
Junichi Yoda [email protected]

Junichi Yoda
 
Old April 9th, 2004, 06:56 AM
Registered User
 
Join Date: Apr 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Did you get an answer to your problem as I have exactly the same problem and need an answer!

 
Old April 9th, 2004, 08:47 AM
sal sal is offline
Friend of Wrox
 
Join Date: Oct 2003
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Stop.
Save your data to the c drive.

Your database may habe been corrupted. Do a search on this forum fot the error. You will find more info there.

Access can not find the vb extension file. You will have to create a new database and import all objects to that database.




Sal
 
Old April 9th, 2004, 09:15 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
Send a message via ICQ to SerranoG Send a message via AIM to SerranoG
Default

Have you looked at your linked table manager to make sure any linked tables have been redirected to your C: drive? There may be one or more still trying to point to the network.


Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division
 
Old April 11th, 2004, 07:55 PM
sal sal is offline
Friend of Wrox
 
Join Date: Oct 2003
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Serrano, this is a Access 2000 known bug. I am not sure if it was ever fixed with a service release.

It has gotten me before.



Sal
 
Old December 13th, 2004, 05:28 AM
Pei Pei is offline
Registered User
 
Join Date: Jan 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
here is the link to th bug described by Sal:
http://support.microsoft.com/kb/840652

Could somebody tell me if it solves the problem ?

th

Pei

 
Old January 2nd, 2005, 12:58 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 217
Thanks: 0
Thanked 1 Time in 1 Post
Default

We're using A2k and recently got lost 3 .mdb's with this message in the span of 8 days- (We call it the Wednesday curse). The KB article discusses this message coming up in Powerpoint- I didn't see anything about it addressed relating to Access. Did I miss something?

Does anyone know if it is "safe" to export some of the objects (such as tables) from the dead .mdb to reuse in another .mdb?

Thanks,
Loralee






Similar Threads
Thread Thread Starter Forum Replies Last Post
MS Access VBA Dateddiff Function SKZ Access VBA 5 November 18th, 2008 08:38 AM
List Box Fliter MS Access VBA hewstone999 Access VBA 1 February 29th, 2008 09:01 AM
Events with VBA & MS Access hoen VB How-To 0 January 19th, 2006 10:18 PM
Emailing from MS Access using vba and outlook katd007 Access VBA 0 July 8th, 2004 12:48 PM
MS Access, VBA code to copy recordset Ivan Classic ASP Databases 1 November 1st, 2003 05:52 PM





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