Using Access 97.<br><br>I had a form in modal state and I tried to set it to reset itself to normal mode via VBA while opening another form. Following this the database is unusable.<br><br>On trying to compile or trying to run anything I get an automation error, highlighting an object (database) variable declaration.<br><br>When I click on the form, the database window shakes.<br><br>I cannot delete, open, duplicate, or copy the form.<br><br>What is happening? How can I correct it?<br><br>Pavla