473,568 Members | 2,986 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Qu it acQuitSaveAll" it does not compact the
database.

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

It I use both CloseCurrentDat abase and Application.Qui t 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 2020
"Barry Edmund Wright" <bw************ **@sympatico.ca wrote in message
news:ed******** *************** ***********@p69 g2000hsa.google groups.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.Qu it acQuitSaveAll" it does not compact the
database.

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

It I use both CloseCurrentDat abase and Application.Qui t 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.com wrote:
"Barry Edmund Wright" <bwright_msacc. ..@sympatico.ca wrote in messagenews:ed* *************** *************** ***@p69g2000hsa .googlegroups.c om...
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.Qu it acQuitSaveAll" it does not compact the
database.
If I use CloseCurrentDat abase it compacts the database but keep the MS
Access window open.
It I use both CloseCurrentDat abase and Application.Qui t 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.ca wrote:
>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
6573
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 I solve this problem. Thanks!
2
2154
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 Error '-2147217900(8004e14)': Syntax Error (missing operator) in query expression in '>0 and =' I know that the Switchboard probably doesn't cater...
5
2956
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 "Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source=C:\Dump\DataOld.Mdb", _ "Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source=C:\Dump\Data.Mdb"
2
3365
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. Hopefully I will have a main switchboard which will in turn lead to three sub switchboards. Can anybody tell me how to get the form automatically...
1
1448
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 the users that compacting is a good (and necessary) thing and even added a compact database button on the switchboard. The problem is, that I...
8
5596
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 View > Database Objects menu, and use the up/down keys and the Enter key, but I can't see what it is I am about to open. I was able to replicate...
10
2478
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 would include the menu system and except for the "print" shortcut button, all the control buttons. In fact, if I could somehow automate printing reports,...
0
1068
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 this: Object flag = Type.Missing; bla, bla, and things like this...
0
1320
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 use the Quit() method I get an error: "Microsoft Word for Windows has encountered a problem and needs to close. We are sorry for the...
0
7693
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7605
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7917
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7962
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5501
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5217
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3631
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2105
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
933
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.