JimP said:
This is the first where I've code become docompiled upon distibution. Is
this fairly commonplace?
I have a difficult enough time keeping a regular mdb in a compiled state
even on my development machine. I can't say it's common, but it does often
happen. perhaps it's also possible that it ws un-compiled on your machine
*before* you distributed.
References and a few things can be different on different machines, and thus
simply launching the program can cause some references of things to be
changed, or worse broken (and I believe if that point when those references
break, you'll have some code that is un compiled at that point). If you
distribute a mde, then this problem is completely eliminated.
Furthermore if you distribute a mdb, them any time the user slips something
into design mode, then you've got parts of your application that will become
instantly uncompiled.
At the end of the day it's really a question of reliability, and exercising
more caution by using a mde. Users can't accidentally change code or forms,
and another terrific added bonus of using a mde is that both your local and
global variables DO NOT reset if there is a un-trapped error. This fact
alone means that using a mde is considerably more reliable as any global or
local variables will NEVER become reset by on handled errors...the code just
keeps on running with all values intact....