Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 18th, 2006, 11:31 PM
Authorized User
 
Join Date: Feb 2006
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.
Thanks!!!

Scripts82
__________________
Scripts82





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





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