Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 18th, 2006, 11:31 PM
Authorized User
Join Date: Feb 2006
Location: , , Singapore.
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Default Compacting the Frontend

Hi, currently i have a databased deployed using ms access (mdb) file.
The front end (mde file), residing inside each individual's computer contains the forms and etc to access the data in the backend.

My problem is as follows:
==> Everytime the user open/close the front end mde file, I want to run a routine/macro (in the front end mde) to compact the front end file. How do I do it?
I know I can use: dbengine.compactdatabase
But the problem is where do I invoke it?
I cannot invoke it while the file is opened as the compact needs the current mde file to be closed...

I know that I can also use the "\compact" in the command line. How to do this using vba?

Any help is greatly appreciated.

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
compacting database pblm MathLearner VB Databases Basics 8 September 27th, 2007 07:34 AM
Compacting database Scootterp Access VBA 5 August 9th, 2006 09:33 AM
Tough one !! xls as frontend with mdb as backend Stanny Access 5 January 7th, 2005 11:01 AM
compacting access Tasha Access VBA 3 August 9th, 2004 07:46 PM
SQL 2K and VB6 FrontEnd vinceclo SQL Server 2000 0 February 4th, 2004 10:29 PM

All times are GMT -4. The time now is 06:11 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.