Solved

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

Posted on 2014-10-03
4
142 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
[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
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 50

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

Technology Partners: 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

This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

730 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