?
Solved

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

Posted on 2011-03-17
2
Medium Priority
?
801 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 2000 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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
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.
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

719 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