Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Error accessing file. Network connection may have been lost.

Posted on 2003-12-08
6
Medium Priority
?
683 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 375 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 23

Accepted Solution

by:
heer2351 earned 375 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

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

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

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
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 …
Suggested Courses

927 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