Solved

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

Posted on 2014-10-03
4
143 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 38

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 58
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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

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.
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
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…

717 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