Why does the Access 2000 runtime application that used to work on Vista doesn't now?

Posted on 2009-02-12
Last Modified: 2013-11-29
I wrote a database application in Access 2000 which worked fine on XP and earlier versions of Microsoft OS's. When I upgraded to Access 2003, I maintained the files for my application in Access 2000 format.

When Vista was released, changes needed to be made to my application: mainly all macros were converted to VBA routines and all visual basic function calls were prefixed by "VBA.". That seemed to resolve the incompatibilities that my application was having with Vista at that time.

However, my application will not run on a more recent version of Vista (Vista Home Premium). The startup form will appear. I can close the startup form, but the custom menu bar is corrupted. Two of the drop-down menus are missing items and show "Other..." instead. Whenever I click on a valid menu item, I get the "Execution of this application has stopped due to a run-time error" message.

I changed my application so I could by-pass the startup routine. I was hoping I could check the references. But what happens then is the application starts up; the custom menu bar and the built-in menu bar appear; and then, once again, the "Execution of this application has stopped due to a run-time error" message displays, and the application stops before the database window even appears.

Does anyone have any idea of what is happening here? Are these new problems because of changes in the newer versions of Vista? Or is there something more basic& something that I should have changed before?


Question by:SilverJade
    1 Comment
    LVL 84

    Accepted Solution

    If you cannot even start the application with the Shift key held down, then you've probably got a corrupt database.

    Make a backup first, then do this:

    Compact and Repair the database. Since you can't open it, you'll have to use JetComp:
    Open the database, then open the VB Editor window. Click Debug - Compile. Fix any error you might have.
    Now C&R again.

    If those don't work, you may need to decompile. Again, make a backup.

    Build a Shortcut with a Target like this:

    "Full path to msaccess.exe" "Full path to your db" /decompile

    Now go back through the Compact steps above.

    Finally, if either of these work, you should immediately build a new, blank database and import everything into it. Don't forget your custom menubars and such, and you may have to remake any references if you're using anything other than the basics made by Access.

    Where is the database installed on the Vista box? It should be in one of the User folders, not Program Files.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Today's users almost expect this to happen in all search boxes. After all, if their favourite search engine juggles with tens of thousand keywords while they type, and suggests matching phrases on the fly, why shouldn't they expect the same from you…
    Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
    Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
    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…

    760 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

    13 Experts available now in Live!

    Get 1:1 Help Now