Solved

Access when close database a window appears to make a new database

Posted on 2014-10-03
4
141 Views
Last Modified: 2014-10-07
I have an Access 2010 database which when closed opens up the Access window as though I want to create a new database.  Why would this be happening?
0
Comment
Question by:SteveL13
4 Comments
 
LVL 36

Accepted Solution

by:
PatHartman earned 500 total points
ID: 40360179
Your current code is closing your application, not Access.

I would suggest using

Application.Quit acQuitSaveAll

the SaveAll isn't technically necessary since your users shouldn't be modifying application objects but it does prevent accidents if you happen to have warnings set to Off.
0
 
LVL 57
ID: 40360205
Either that, or you have compact on close set in File, Access Options (at the bottom of the menu) and it's having some type of issue.

Jim.
0
 
LVL 49

Expert Comment

by:Gustav Brock
ID: 40360217
>  or you have compact on close set in File

- and, I guess, under Options, Current Database, a start Form specified. Remove this if you wish to compact the database preserving the filename.

/gustav
0
 

Author Comment

by:SteveL13
ID: 40366613
Application.Quit acQuitSaveAll did the job.

I still have compact on close set in File, Access Options enabled but it is no longer opening the new database window.

And I still have a start form enabled.

--Steve
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
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 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…

838 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