thanks for your reply. how do i do a decompile?
Decompile a copy of the database by entering something like this at the
command prompt while Access is not running. It is all one line, and include
the quotes:
"c:\Program Files\Microsoft office\office\msaccess.exe" /decompile
"c:\MyPath\MyDatabase.mdb"
Then open Access (holding down the Shift key if you have any startup code),
and compact. Twice.
Explanation:
An MDB contains 2 copies of the code:
- the text that you see and edit;
- the binary (compiled code) that actually executes.
These 2 can get out of sync.
The binary is different for every version of Access. Later versions can use
the binaries from earlier ones, but as soon as you modify anything, it gets
recompiled into the new version. If you open with an older version, it can't
read the newer binary, so it recompiles into the old one. This is all
supposed to happen transparently, but in fact errors occur, it bloats, and
there can be weird problems (such as phantom break points, or code that
won't stay compiled.)
A decompile explicitly instructs Access to dump the entire binary. Then you
compact (to completely remove the discarded binary.) It now re-creates the
binary from the text version, and so these particular kinds of error are
gone.
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users -
http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.