?
Solved

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

Posted on 2009-04-02
1
Medium Priority
?
298 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 1500 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month14 days, 8 hours left to enroll

840 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