
WARNING! Decompiling Access 97 databases.
Hi everyone,
Just thought I'd let you know about a problem I encountered when using the
undocumented /decompile option.
As I have often found corruption problems in Access 97 which I can't put my
finger on, I have been using the /decompile option regularly, which has, so
far, been working well.
However, today I ran it on an Access 97 database, and it came up with a
message that basically told me there were compile errors in my database.
I have never seen this message before, so I just assumed that it had found
some syntax errors.
I found two syntax errors in modules, corrected them, and tried to "Compile
and Save all modules" to find any other stray ones.
I then found out that one of my other modules (which hadn't contained any
errors before /decompile) had been completely blitzed, and had all VBA code
replaced with what appears to be a view of the compiled code.
I can only imagine that this was the point at which \decompile had bombed
out.
So, in summary, if you are using /decompile, it's definitely worth taking a
backup before running it, as, if there any syntax errors in your db, they
may cause /decompile to abandon, leaving your db in an "in-between" state.
Cheers,
Matt