Solved

Error accessing file. Network connection may have been lost.

Posted on 2003-12-08
6
673 Views
Last Modified: 2008-03-10
Hi all,

I'm developing Access apps using Access 2000 on a Win2Kpro machine with the web server enabled AND Visio 2002 installed. I've installed SP3 per Microsoft instructions per KB article

http://support.microsoft.com/default.aspx?scid=kb;en-us;304548

However, I'm continuing to get these darned errors with my VBA modules. Anyone know of any other preventative methods other than the ones mentioned in the KB article?

My databases are recoverable, except for the offending form but this is becoming a huge impediment to my development. Anyone with any ideas other than installing Win2K pro on another partition and using that boot to develop database front-ends with? I switch between Access2k, Visio, VB.NET, C++.net and Sun Java Studio all day.

Thanks in advance.
0
Comment
Question by:fcfang
  • 2
  • 2
  • 2
6 Comments
 
LVL 23

Expert Comment

by:heer2351
ID: 9899914
You can try the following undocumented command line option. Make a copy of your database first !

"C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE"  complete_path_to_your_database.mdb /DECOMPILE

Note: you get no indication at all that access did the decompile.

Now compile all modules again and see if this solves it.
0
 
LVL 32

Assisted Solution

by:jadedata
jadedata earned 125 total points
ID: 9899943
If you are doing that development OVER the network with the faulty connections,... stop before you pull all you hair out.
Do your development on the client side and then replace the production db with the dev copy.
0
 
LVL 3

Author Comment

by:fcfang
ID: 9900178
Thanks for the quick replies guys.

Jadedata:
All development is done on the local machine. The only thing off of the local machine is the link to the ODBC data on a SQL server. However, this is not the cause of the problems.

Heer23351:
I tried the decompile and although it doesn't work for me (the module for the form appears completely blank), the db is recoverable. It's just that I reuse a lot of my modules from app to app and I don't always remember to recompile the db before closing the mdb, hence my dilema with the corruption. My question's more about prevention. Thx tho.
0
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 23

Accepted Solution

by:
heer2351 earned 125 total points
ID: 9900194
Here is a link to the corrupt mdb faq from Tony Toews, check to see if it has any value for you:

http://www.granite.ab.ca/access/corruptmdbs.htm
0
 
LVL 32

Expert Comment

by:jadedata
ID: 9900229
prevention:
  CRBCRBCRBD

 CRB = Compile Repair Backup
 D = Decompile

I even have built a routine that will copy out all the coded objects in the app to a separate mdb for storage and backup.
0
 
LVL 3

Author Comment

by:fcfang
ID: 9923096
Thanks again for the quick responses. I had been hoping for some answer like "Oh, there's a new vbe6.dll that'll fix this problem..." but alas I'll have to settle for building a little device to deliver a little electric shock each time I import a form or module to remind me to compile the db.

I'm considering a move to Access 2002 for development as it appears not to have this problem.

Thanks once again.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question