[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 450
  • Last Modified:

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

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?

Thanks.



0
SilverJade
Asked:
SilverJade
1 Solution
 
Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
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: http://support.microsoft.com/kb/273956/EN-US/
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.
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now