Solved

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

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
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…

705 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

21 Experts available now in Live!

Get 1:1 Help Now