Re: Access 2000, VBA Code corrupt
- From: "Rlee" <tech_support@xxxxxxxxxx>
- Date: Wed, 7 Jan 2009 13:33:48 -0700
Hi Michael,
Thanks for responding..
Unfortunately, its only when i open the VBA portion of the form... Access
does not open it up. I still get the "Error accessing file. Network
connection..."... This file is on my local computer...
I've tried to import it into a clean database, and i still get the same
errors.
In the end, i'm just having to re-write the entire thing.
Thanks anyway for the help.
"Michael J. Strickland" <qualityservices2@xxxxxxxxxxx> wrote in message
news:uGqZRAQcJHA.1328@xxxxxxxxxxxxxxxxxxxxxxx
"Rlee" <tech_support@xxxxxxxxxx> wrote in message
news:uQyb0UPcJHA.1184@xxxxxxxxxxxxxxxxxxxxxxx
Hi there,
I am working with Access 2000 and have 2 VBA items that i'm unable to
open.
I am unable to open the VBA Class Code ("Items"), which was originally an
import from a VB6 program.. I had no problem until the other day when i
noticed some odd things happening with the program.
Also, the form that accesses this Items class is also corrupt (the VBA
part, i can see the form itself).
Does anyone know of a way to recover the VBA code itself? I've tried to
do the compact and repair, as well as make sure i am running sp3 and the
vba code is still inaccessable.
The Error i get whenever i open that (or any form) is "Error Accessing
File. Network connection may have been lost".
Thanks to anyone who may be able to help.
If by "unable to open" you mean Access hangs when you try to open it in
Design View, you might try this:
1. Make a backup of the database (in Windows).
2. Open the database and do a compact/repair.
3. Close the database.
4. Re-open the database and import a different, working form (e.g.
frmABC).
5. Run the working form and Hit Ctl-Break to break its code execution.
6. Click on the "Debug" button.
7. Hit Ctl-R to go into Project Explorer.
8. Click on the Reset button to stop code execution.
9. In the panel on the left, select the corrupt form to view its code.
10. Click Debug->Compile to re-compile the corrupter form.
11. Exit design mode saving the form and the database.
12. Re-open the database and your form should be restored.
It seems that sometimes Access (2003 & 2007) forms get corrupt and lose
something which is needed for Design Mode/Compilation. Importing a good
form restores/restarts this process and allows you to open/edit and
restore a corrupt form.
--
-----------------------------------------------------------------------
Michael J. Strickland
Quality Services qualityservices2@xxxxxxxxxxx
703-560-7380
-----------------------------------------------------------------------
.
- Follow-Ups:
- Re: Access 2000, VBA Code corrupt
- From: Michael J. Strickland
- Re: Access 2000, VBA Code corrupt
- From: tkelley via AccessMonster.com
- Re: Access 2000, VBA Code corrupt
- References:
- Access 2000, VBA Code corrupt
- From: Rlee
- Re: Access 2000, VBA Code corrupt
- From: Michael J. Strickland
- Access 2000, VBA Code corrupt
- Prev by Date: Re: Access 2000, VBA Code corrupt
- Next by Date: Re: Access 2000, VBA Code corrupt
- Previous by thread: Re: Access 2000, VBA Code corrupt
- Next by thread: Re: Access 2000, VBA Code corrupt
- Index(es):
Relevant Pages
|