D
David W. Fenton
That problem was also present in A97.
I don't know that I ever encountered in A97. I only encountered the
version caused by VBE6.DLL, which wasn't relevant in A97, since the
VBE was introduced into Access only with A2K. And, of course, you
couldn't corrupt the VBA project as a whole in A97 because the
monolithic save model was not introduced until A2K.
A decompile might fix it.
The one time I encountered this, there was no recovery at all. That
the KB article above does not recommend a decompile suggests to me
that there was no known recovery possi8ble.
If
not, the OP should try SaveAsText as you recommended or import the
form without any code first. If the pasted code doesn't reattach
to the events, try creating the event code subroutines and pasting
in each subroutine. Any functions should be fine. I've had
situations come up where a single user needed to use an older
version of the database, but needed an update of a particular form
to fix a problem. Sometimes simply importing the form from the
new database caused the same kind of corruption.
All due respect, but I think you're wrong. This error did not occur
before A2K, and when it does, it's completely unrecoverable -- the
MDB it happens in is completely unable to be recovered in any form.
I tried. And MS doesn't provide any recovery instructions (only
using backups), so that seems pretty definitive to me.