Solved

Error accessing file. Network connection may have been lost.

Posted on 2003-12-08
6
661 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
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
In Debugging – Part 1, you learned the basics of the debugging process. You learned how to avoid bugs, as well as how to utilize the Immediate window in the debugging process. This article takes things to the next level by showing you how you can us…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.

758 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now