Solved

How do I fix my Access app after getting the error "Access has stopped working"?

Posted on 2009-04-02
1
290 Views
Last Modified: 2013-11-25
I have an Access 2003 application, with separate front-end and back-end MDB's, which has now crashed twice wih the same inexplicable error: a dialog captioned "Microsoft Windows" appears (I'm now working in Windows Vista 64 bit, although the application was originally developed on an XP Pro machine -- but it's been working on Vista now for a couple of months). The body of the error dialog is as follows:

First dialog:

Microsoft Access has stopped working
A problem caused the program to stop working correctly.
Windows will close the program and notify you if a solution is available.

Second dialog, which pops up while the first is still on the screen:

Windows cannot find 'c:\data\FinMain.mdb'. Make sure you typed the name correctly, and then try again.

Third dialog. After I hit the OK button on the second dialog, I then get a Microsoft Office dialog telling me the problem was caused by Mcirosoft Office software, asking me if I want to use Windows Update, saying that many problems which are reported can be solved by turning on Windows Update. When I click on the "Open Windows Update" link, I get the message that I need to access the site using Windows Explorer 5 or higher -- I guess MS won't dance with Firefox, which is what I use.

The problem occurred this morning when I attempted to open the program. Yesterday afternoon I had used the program and tweaked some of the code in the front end (the front end file is FinMain.mdb, and the back end is FinData.mdb), debugged it, and then ran it without any problem. When I was finished, the program exited normally. I did a backup, and today when the problem occurred, I tried using the backup -- no luck, same errors with the backup.

As I noted above, this same problem occurred once before, which I was unable to diagnose, and had to revert to an earlier backup where I lost a week's worth of code changes. The problem seems to only affect the front end, not the back end containing financial data. Even though FinMain.mdb won't load (this is the problem I am describing now), FinData.mdb does load properly. However, FinData.mdb contains only tables none of the program code, which is all located in FinMain.mdb.

Losing code, and feeling like I'm playing Russian Roulette is very frustrating.  There is no error message that I can use to help research the problem, other than the cryptic dialog saying Access can't find the file. I'm mystified. Does anyone know how fix this problem?
0
Comment
Question by:ongho0
1 Comment
 
LVL 5

Accepted Solution

by:
mrcoolcoder earned 500 total points
ID: 24056533
1. I think your front is corrupted, so you should start a new mdb and import your front end objects into it.  Any object is importable (queries, tables, reports, and code).

2. Once you have imported all your objects, you will need to relink to the back-end database.

3. I also think that you could benefit from using some kind of source control outside of access, or even text files.  Code is code and I think you need to keep track of it outside of access.
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question