1

I created an AutoExec macro on Access 2007 and wanted to try a new function I created on VBA, but the function throws an error and everytime I open the database I get an error and the database closes, so I can't edit the code or the AutoExec macro because the application closes right after ending the AutoExec.

Any idea how can I open the database without having to run the AutoExec?

4
  • I really need to enter the database because I didn't create a backup, my mistake :S Commented Jul 24, 2014 at 16:35
  • We like errors, they tell us their secrets. Mind to share?
    – Havenard
    Commented Jul 24, 2014 at 16:35
  • It only says "Found an error, and the application will be closed" or something like that, I'm using Access in spanish. The title of the error prompt just says "Microsoft Office Access" Commented Jul 24, 2014 at 16:38
  • this isn't a duplicate of the linked question, this one is for opening the database interactively, the linked question is for opening it programatically
    – Tim Abell
    Commented Aug 16, 2015 at 19:41

1 Answer 1

2

Try opening the DB by holding down the SHIFT key until the DB is loaded. This will disable all macros before running. This way you can open the DB, correct the error and then try it again.

6
  • Thanks, read that in other page and it worked. Thanks everybody! Commented Jul 24, 2014 at 16:40
  • What other page? Anyway, you can still mark the one above if it also helped. It might help someone searching for a similar question. Thanks. Commented Jul 24, 2014 at 16:42
  • This page: office.microsoft.com/en-us/access-help/… Commented Jul 24, 2014 at 16:48
  • Okay ! Glad you have it sorted. Commented Jul 24, 2014 at 16:49
  • Thanks! If I had not found it there, you would have helped me! Commented Jul 24, 2014 at 16:50

Not the answer you're looking for? Browse other questions tagged or ask your own question.