Solved

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

Posted on 2011-03-17
2
797 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

630 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