473,320 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Compacting FE and Quiting Application from Switchboard Problem

Hi All,

MS Access 2003 - using a split database.
I am using a switchboard. I have set in Options to "Compact on Close".
What code do I put behind the Exit button on the switchboard so the
database Compacts the FE on Close and closed the MS Access Window?

If I just use "Application.Quit acQuitSaveAll" it does not compact the
database.

If I use CloseCurrentDatabase it compacts the database but keep the MS
Access window open.

It I use both CloseCurrentDatabase and Application.Quit the MS Access
database window still remains open.

Any ideas how I can ensure that the database FE both compacts and
closes the MS Access application?

Thanks,
Barry
Jan 7 '08 #1
3 2012
"Barry Edmund Wright" <bw**************@sympatico.cawrote in message
news:ed**********************************@p69g2000 hsa.googlegroups.com...
Hi All,

MS Access 2003 - using a split database.
I am using a switchboard. I have set in Options to "Compact on Close".
What code do I put behind the Exit button on the switchboard so the
database Compacts the FE on Close and closed the MS Access Window?

If I just use "Application.Quit acQuitSaveAll" it does not compact the
database.

If I use CloseCurrentDatabase it compacts the database but keep the MS
Access window open.

It I use both CloseCurrentDatabase and Application.Quit the MS Access
database window still remains open.

Any ideas how I can ensure that the database FE both compacts and
closes the MS Access application?
Don't compact in the production environment. Compact your development front
end before you deploy it and use a batch file or Tony Toews' FE updater to
deliver a pristine copy to your users every time they start it.

HTH - Keith.
www.keithwilby.com

Jan 7 '08 #2
Thanks, Keith. Using Tony Toews' FE updater was a good tip. It works
very well, I would certainly recommend it.
On Jan 7, 9:08 am, "Keith Wilby" <h...@there.comwrote:
"Barry Edmund Wright" <bwright_msacc...@sympatico.cawrote in messagenews:ed**********************************@p 69g2000hsa.googlegroups.com...
Hi All,
MS Access 2003 - using a split database.
I am using a switchboard. I have set in Options to "Compact on Close".
What code do I put behind the Exit button on the switchboard so the
database Compacts the FE on Close and closed the MS Access Window?
If I just use "Application.Quit acQuitSaveAll" it does not compact the
database.
If I use CloseCurrentDatabase it compacts the database but keep the MS
Access window open.
It I use both CloseCurrentDatabase and Application.Quit the MS Access
database window still remains open.
Any ideas how I can ensure that the database FE both compacts and
closes the MS Access application?

Don't compact in the production environment. Compact your development front
end before you deploy it and use a batch file or Tony Toews' FE updater to
deliver a pristine copy to your users every time they start it.

HTH - Keith.www.keithwilby.com
Jan 26 '08 #3
Barry Edmund Wright <bw**************@sympatico.cawrote:
>Thanks, Keith. Using Tony Toews' FE updater was a good tip. It works
very well, I would certainly recommend it.
Thanks for your kind words.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
Jan 28 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Dejan M. | last post by:
Can you help me? I have 9 forms in the base. 2 forms are opening as single and 7 as datasheet. Thats OK, but when I used Switchboard manager, with him all of my forms are opened as single. How can...
2
by: Terry | last post by:
I have created a switchboard, created using Access 2000. If I put the mouse anywhere on the form, outside of the checkboxes and scroll the wheel backwards, I get the following error. Run-Time...
5
by: lappy | last post by:
Hello, I have written a small programme to compact an access 97 database. Dim je As New JRO.JetEngine ' Compacts database Data.Mdb to Data2.mdb. je.CompactDatabase...
2
by: Neil Greenough | last post by:
I am trying to create a Switchboard using the Switchboard Manager in MS Access 2000. I have managed to get the table created for the switchboard, however it hasn't actually created the form. ...
1
by: pmalcoms | last post by:
Hi. I have an Access2k sp3 database that is shared with a group of users (it's on a network share). The database has grown to be about 1.3Gb and I want to compact it. I have tried to explain to...
8
by: Ray Greene | last post by:
I was working in Access and everything disappeared from the screen. When I closed and reopened the file there was no switchboard. I can open tables and forms etc if I select a category from the...
10
by: Chuck Insight | last post by:
Hi All, I just finished creating my first all-inclusive MS-Access application. Ideally, I would prefer to prevent mischievous users from accessing everything except the switchboard items. This...
0
by: Bill | last post by:
Hi all, I have developed a component to wrap MS-Word, and I use this to manage my reports. It´s a simple components, but it´s very useful...to eliminate this very tiresome declarations like...
0
by: jorgedec | last post by:
I'm trying to use Office's FileSearch object to search for files. I'm using Visual Studio 2002 c# and Word 2000. The problem I am having is realeasing the Word.Application object. When I try to...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.