RE: Error message "Error accessing file" in VBA Applications
From: Siegfried (Siegfried_at_discussions.microsoft.com)
Date: 08/09/04
- Next message: Geo: "WEIRD ERROR AT REFRESHING DATA DISPLAYED IN AN ACCESS FORM"
- Previous message: Steve Schapel: "Re: Running macros automatically every day"
- In reply to: Siegfried: "Error message "Error accessing file" in VBA Applications"
- Next in thread: Steve Schapel: "Re: Error message "Error accessing file" in VBA Applications"
- Reply: Steve Schapel: "Re: Error message "Error accessing file" in VBA Applications"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 9 Aug 2004 03:49:03 -0700
Steve,
First of all thank you very much for your helpful hint. At least I know now
for new Access Databases how to avoid these problems with the lost link to
the VBA procedures.
But as Microsoft is aware of the problem, these procedures given in the
knowledgebase cannot be the solution.
I expect a SP or and addendum to an existing SP to overcome the problem
finally. Look here, I created in Access2000 e.g. a database for the
Transmission Assets Administration.
I developed abot 150 forms and nearly the same number of queries and a lot
of tables to present meaningful details. For this purpose I wrote some 10,000
lines of VBA code linked to complete forms (On Current) or to specific fields
for deeper evaluation of issues. The procedures are accessed through Event
Procedures linked to the fields.
When I now follow the remedy as published in the knowledge database 304548
then pratically I have to redo the database.
I must import all forms, tables, queries to a new database.
I have to disable for all forms the Has Module link to No
I have to copy and paste all VBA Modules to Text files
I have to copy and paste all VBA Modules to the VBA Editor of the new database
I have to re-open all Event procedures (more than 1000!) ........
Is this really the permanent solution Microsoft is offering???
I hope the answer will be No!
But nevertheless, thank you very much for your answer.
With regards
Siegfried
"Siegfried" wrote:
> Dear all,
> I program VBA Macros for forms in MS Access for adapting the forms to my
> needs and for setting special filters by searching with DAO through the
> tables extracting data as I need or counting specific items.
> The VBA macros I access through Event Procedures like On Click or On Enter,
> etc.
> In the last time I experience more frequently the following Error Message:
> "Microsoft Visual Basic"
> "Error accessing file. Network connectivity may have been lost".
> In this case the form becomes useless because I do not know how to repair
> the fault. I'm not connected to a network. The entire Access file is on my
> hard disk with all tables, forms and macros.
> When T run
> Tools>Database Utilities>Compact and Repair Database
> nothing changes. The message stays.
> My only way to overcome the fault is to develop the form again from the
> scratch and program all macros again.
> But even in this case I'm not sure that the fault does not repeat after a
> while.
> What shall I do?
> I run MSAccess2000 with Windows2000 (office) and MSAccess2000 with WindowsXP
> Home Edition in ann Office2000 environment.
> By the way, when I open the Visual Basic Editor I can see and edit all
> macros. Nothing is lost. Only the form does not find the link.
> Is there somebody with a smart idea how to eliminate the fault permanently?
> With regards
> Sieg
>
> --
>
- Next message: Geo: "WEIRD ERROR AT REFRESHING DATA DISPLAYED IN AN ACCESS FORM"
- Previous message: Steve Schapel: "Re: Running macros automatically every day"
- In reply to: Siegfried: "Error message "Error accessing file" in VBA Applications"
- Next in thread: Steve Schapel: "Re: Error message "Error accessing file" in VBA Applications"
- Reply: Steve Schapel: "Re: Error message "Error accessing file" in VBA Applications"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|