Hmm... and if I stop the execution in break mode and make some changes, will
there be no risk of database corruption?
I'd like to know how MS Access handles program modules... in detail.
Vlado
> Pitty... since I'd expect I would be able to make changes in code (in
> break mode) and thus easily repair mistakes. If I may not make any changes
[quoted text clipped - 32 lines]
>>>> mfg
>>>> --> stefan <--
No. You don't have to make all those steps. Just don't change the code while
it is running (i.e. without stopping the code first.)
Access keeps 2 copies of the code:
- the binary version of the form's code (pseudo-compiled);
- the text version (the one you view and edit.)
When you start modifying a form, Access creates a copy (so you can revert if
you don't wish to save.) It is now juggling 4 copies of the code.
If you start editing while the code is in break mode, Access is supposed to
create these copies while the code is executing in break mode, and still
resume the code.
Occassionally it drops the ball in the middle of this juggling act, and the
result is a corrupt form. A decompile will sometimes rescue the form, but
you can avoid the corruption by stopping to the code and switching to design
view before you edit the code.

Signature
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.
> Hmm... and if I stop the execution in break mode and make some changes,
> will there be no risk of database corruption?
[quoted text clipped - 38 lines]
>>>>> mfg
>>>>> --> stefan <--
Vladimír Cvajniga - 06 Mar 2007 07:59 GMT
This is what all Access developers should know before they start their first
application. TYVM for detailed info, Allen. I've ordered Access 2002
Developer's Handbook but I'm affraid I won't find any Access background
secrets in that book.
I hope that MS will do some research on Access MDB corruption and will
change a few things to make Access safer. In a mean time they could publish
a list of the most dangerous things in Access and some help how to avoid all
potentional problems.
I was lookin forward to A2007 (CZ trial version should be available soon)
but I'm not sure if I really need Access that may destroy my projects. I
tend to switch to Delphi but first I'd like to test some things to see if
it's the right decision.
Thank you very much for your time, Allen. I really appreciate your work
here.
Vlado
> No. You don't have to make all those steps. Just don't change the code
> while it is running (i.e. without stopping the code first.)
[quoted text clipped - 57 lines]
>>>>>> mfg
>>>>>> --> stefan <--