Solved

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

Posted on 2014-10-03
4
137 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 34

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

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

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…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
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…
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…

705 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

15 Experts available now in Live!

Get 1:1 Help Now