Solved

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

Posted on 2011-03-17
2
786 Views
Last Modified: 2012-05-11
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
Comment
Question by:tremak
2 Comments
 
LVL 119

Accepted Solution

by:
Rey Obrero earned 500 total points
ID: 35158221
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
 

Author Closing Comment

by:tremak
ID: 35158244
I remember this now from my Access days a few years back.

Thanks for the quick fix.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

863 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

16 Experts available now in Live!

Get 1:1 Help Now