Solved

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

Posted on 2009-04-02
1
287 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…

863 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now