• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 806
  • Last Modified:

Stop main form load event from running when opening an Access 2007 application

I put a little code on the main form of an access application in the forms load event.

The last line of code was docmd.quit.

Now, when I open up Access and try to open this application to remove that line of code, the form load event appears to kick off, runs the code and then does the docmd.quit command, closing Access on me.

Is there a way to open this without having the code execute so I can get in and delete this line?
0
tremak
Asked:
tremak
1 Solution
 
Rey Obrero (Capricorn1)Commented:
looks like you set up the main form as the startup form..

hold the SHIFT key while opening the db until db is open..

now you can see the Main form in design view and delete that line of code
0
 
tremakAuthor Commented:
I remember this now from my Access days a few years back.

Thanks for the quick fix.
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

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