That is wizard generated code, and has been running correctly on many
millions of machines.
There are several other possibilities, the first of which is a missing
reference. Open any code window and go to Tools >>> References and fix any
marked "MISSING".
You could also have a corrupt database. Try the following:
First, always work on a copy of the database. Working on the original may
make it impossible for a repair service to fix it.
Decompile your database:
http://www.trigeminal.com/usenet/usenet004.asp
Download a copy of JetComp.exe:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;273956
Try backing up your forms as text with the undocumented SaveAsText
LoadFromText functions:
http://www.datastrat.com/Code/DocDatabase.txt
Also have a look at the Microsoft KB article:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;209137
Then have a look at Tony Toews' Access Corruption FAQ at:
http://www.granite.ab.ca/access/corruptmdbs.htm
for some suggestions. Unfortunately, some corruption cannot be fixed - you
may need to create a new database, import what can be salvaged, and recreate
the rest.
Although it's a paid service, Peter Miller does an outstanding job of saving
corrupt databases. Try this URL:
http://www.pksolutions.com
Now I get this error when I put it there:
You cancelled the previous operation.
[quoted text clipped - 12 lines]