Access 2003 vs vista

G

Guest

I have windows vista installed and only microsoft access 2003. the
application has worked well until suddenly after i did some editing with the
database design, it gave out message "Microsoft acces has stopped working".
Then it restarted itself and prompt me to save a backup. This happened after
i tried to extract data using combo box for the second time. The problem
occurs on windows vista only. Please help.
 
A

Allen Browne

There's a fairly good chance that the database experienced some corruption
in the crash, and needs repairing.

Here's a sequence to try to get things working again. It address several
issues, because we can't know from your description exactly where the
problem lies. Perform the steps in order.

1. Uncheck the boxes under:
Tools | Options | General | Name AutoCorrect
In Access 2007, it's:
Office Button | Access Options | Current Database | Name AutoCorrect
Explanation of why:
http://allenbrowne.com/bug-03.html

2. Compact the database to get rid of this junk:
Tools | Database Utilities | Compact/Repair
or in Access 2007:
Office Button | Manage | Compact/Repair

3. Close Access. Make a backup copy of the file. Decompile the database by
entering something like this at the command prompt while Access is not
running. It is all one line, and include the quotes:
"c:\Program Files\Microsoft office\office\msaccess.exe" /decompile
"c:\MyPath\MyDatabase.mdb"

4. Open Access (holding down the Shift key if you have any startup code),
and compact again.

5. Open a code window.
Choose References from the Tools menu.
Uncheck any references you do not need.
For a list of the ones you typically need in your version of Access, see:
http://allenbrowne.com/ser-38.html

6. Still in the code window, choose Compile from the Debug menu.
Fix any errors, and repeat until it compiles okay.

7. Still in the code window, choose Options on the Tools menu. On the
General tab, make sure Error Trapping is set to:
Break on Unhandled Errors
and the Compile on Demand is unchecked.

At this point, you should have a database where the name-autocorrect errors
are gone, the indexes are repaired, inconsistencies between the text- and
compiled-versions of the code are fixed, reference ambiguities are resolved,
the code syntax is compilable, and the VBA options are set to show errors
and avoid this kind of corruption.

If the problem occurs only under Vista, it could also be related to
permission. You may have to create a shortcut to msaccess.exe, and click the
Run As Administrator box on the shortcut.
 
P

Parklan

faraza said:
I have windows vista installed and only microsoft access 2003. the
application has worked well until suddenly after i did some editing with
the
database design, it gave out message "Microsoft acces has stopped
working".
Then it restarted itself and prompt me to save a backup. This happened
after
i tried to extract data using combo box for the second time. The problem
occurs on windows vista only. Please help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top