Eeek! VB has just packed up!

  • Thread starter Thread starter Stephen Glynn
  • Start date Start date
S

Stephen Glynn

Access 2000, Windows XP home. VB has suddenly stopped working in one
particular database. When I try, for example, to leave a field with
some code attached to the On Exit event which was working perfectly well
earlier today, I get the message 'Error Accessing File: Network
Connection may have been lost' (I'm on a PC).

When I first OKed this, it opened the debug window at a bit of code that
used to be attached to a button on a form that no longer exists but
which I can see listed in 'Microsoft Access class objects'. I've tried
deleting the code that used to run from that command button, and after
being warned several times that the form no longer existed, I got rid of
the code. But I can still see the form listed as a class object, and
can't get rid of the damn thing. When I try to select it, Access
suggest that the invalid form name may be in a macro; well, I haven't
got any macros.

Help, please.

Steve
 
Database is corrupted, it appears. Create a new, empty database; then import
all objects/code/etc. from the corrupted database into the new one. This
usually omits corrupted objects such as the one that you cannot delete.
 
Thanks a million. That's cured it. Huge sigh of relief!

Steve
 
You're welcome.

--

Ken Snell
<MS ACCESS MVP>

Stephen Glynn said:
Thanks a million. That's cured it. Huge sigh of relief!

Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top