PC Review


Reply
Thread Tools Rate Thread

CompactRepair and databound subforms

 
 
Glen Appleton
Guest
Posts: n/a
 
      30th Sep 2003
Hi!

I have a project that utilizes a local external .mdb file for caching data
from our SQL server to perform order submission processing and reports. In
the main project file, I have several subforms on the main form that are
bound to tables within the external .mdb file. I'm trying to use the
Application.CompactRepair method to compact the external db after closing
the main form and clearing the data from the tables.

The problem I'm running into is that the main project file is not closing
the connection to the external db even after the main form is closed, thus
producing an error when I try to compact. I suspect it has something to do
with the fact that the subforms are actually unloaded from memory after the
main form has closed. I'm closing the main form, clearing the data using
SQL, and calling the CompactRepair from a separate module (not from within
the form's code).

Is there a way to force the main project file to close all external
connections using VBA?

- Glen


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CompactDatabase vs CompactRepair Phil Freihofner Microsoft Access VBA Modules 2 23rd Apr 2010 03:24 AM
CompactRepair on a secured Access db Jonathan Microsoft Access Security 8 12th Jun 2007 09:07 PM
Access 2003 Developer Extension - 'CompactRepair' Error =?Utf-8?B?YWd3aWxsaQ==?= Microsoft Access 0 6th Jun 2007 05:10 PM
CompactRepair in Macros =?Utf-8?B?S1JPWUFY?= Microsoft Access 0 30th Mar 2006 06:58 PM
Application.CompactRepair =?Utf-8?B?Z2Vub2pvZQ==?= Microsoft Access Security 1 28th Jan 2005 11:11 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:52 AM.