S
Stewart Berman
Access 2007
We have a rather complicated application that has the front end set to
compact on close. During the QA process our testers were able to corrupt
the front end by hitting the escape key a few times while the front end was
compacting. Lots of nasty popup messages when the application was
restarted.
We created a simple database with one table and one form (see attached).
The form has three buttons:
Populate Data -- This empties the table and then adds a little over one
million records.
View Data -- This opens the table in normal mode.
DoCmd.Quit -- This issues a DoCmd.Quit command.
The database is set to compact on close.
To reproduce the problem do the following:
1. Open the database
2. Press the Populate Data button. This empties the table and adds a little
over one million records.
3. Press the View Data button. This opens the table in normal view. It
shows a little over one million records.
4. Close the table and press the DoCmd.Quit button. This executes a
DoCmd.Quit command and the data base compacts on close. Let it complete.
5. Open the database and press the View Data button. There are still a
little over one million records. Close the table.
6. Press the DoCmd.Quit button but this time hit the escape key repeatedly
as the database is compacting.
7. Open the database and press the View Data button. There will be less
than one million records in the table. The amount is dependent on how fast
you hit the Escape button.
I have been able to reproduce this problem on Windows 7 x64 and Windows XP
SP3 x86.
Is this a known problem and is there a way to disable the Escape key during
the compact on close?
We have a rather complicated application that has the front end set to
compact on close. During the QA process our testers were able to corrupt
the front end by hitting the escape key a few times while the front end was
compacting. Lots of nasty popup messages when the application was
restarted.
We created a simple database with one table and one form (see attached).
The form has three buttons:
Populate Data -- This empties the table and then adds a little over one
million records.
View Data -- This opens the table in normal mode.
DoCmd.Quit -- This issues a DoCmd.Quit command.
The database is set to compact on close.
To reproduce the problem do the following:
1. Open the database
2. Press the Populate Data button. This empties the table and adds a little
over one million records.
3. Press the View Data button. This opens the table in normal view. It
shows a little over one million records.
4. Close the table and press the DoCmd.Quit button. This executes a
DoCmd.Quit command and the data base compacts on close. Let it complete.
5. Open the database and press the View Data button. There are still a
little over one million records. Close the table.
6. Press the DoCmd.Quit button but this time hit the escape key repeatedly
as the database is compacting.
7. Open the database and press the View Data button. There will be less
than one million records in the table. The amount is dependent on how fast
you hit the Escape button.
I have been able to reproduce this problem on Windows 7 x64 and Windows XP
SP3 x86.
Is this a known problem and is there a way to disable the Escape key during
the compact on close?