Solved

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

Posted on 2011-03-17
2
794 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

751 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