PC Review


Reply
Thread Tools Rate Thread

Compressing Files

 
 
=?Utf-8?B?QXNoZzY1Nw==?=
Guest
Posts: n/a
 
      15th Nov 2005
Hi,
I am trying to automate the compressing of backup files from an access
application using VBA.
I have seen around the internet that this is possible but I simply don't
know where to start when it comes to constructing a function/procedure.
Also, it would be extremely helpful if you could tell me which references
need to be loaded in VBA to get it to work. At the moment I keep getting
errors on "DefaultFilePath", I assume this is because I don't have the
correct reference loaded. Anyway, thanks in advance for anyone who can
provide a full function. Cheers.
 
Reply With Quote
 
 
 
 
Larry Daugherty
Guest
Posts: n/a
 
      17th Nov 2005
From Acc97 you can set an option to compress the database on close.
Access 2003 offers a file option to backup a database. All database
objects must be closed and you must indicate a backup path.

Please indicate your objective and how you are trying to achieve it.
The errors "DefaultFilePath" doesn't really explain much. Are you
executing the VBA in the database you're trying to compress?

I've mentioned a couple of times in the Access newsgroups that I've
developed a utility that will automatically Backup, Compress and
Restore the current application, when the last user closes it; logging
every step of the process, I've never heard of anything else that
does the whole thing. There are several utilities out there that run
independent of the Access application, some that will even seek and
attempt to compress every MDB on your system. However they must be
manually run or run via the scheduler.

Post back here to continue your thread. If you'd like to explore my
utility, please decode my email address and take it out of the
newsgroup.

HTH
--
-Larry-
--

"Ashg657" <(E-Mail Removed)> wrote in message
news:9D2617C8-418B-4556-8249-(E-Mail Removed)...
> Hi,
> I am trying to automate the compressing of backup files from an

access
> application using VBA.
> I have seen around the internet that this is possible but I simply

don't
> know where to start when it comes to constructing a

function/procedure.
> Also, it would be extremely helpful if you could tell me which

references
> need to be loaded in VBA to get it to work. At the moment I keep

getting
> errors on "DefaultFilePath", I assume this is because I don't have

the
> correct reference loaded. Anyway, thanks in advance for anyone who

can
> provide a full function. Cheers.



 
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
De-compressing old files =?Utf-8?B?Ym9yaXMgdGhlIGJsYWRl?= Windows XP Performance 1 9th Oct 2005 11:02 PM
COMPRESSING FILES MiSt*iQuE Windows XP Music 3 25th Apr 2004 02:24 AM
Compressing AVI Files =?Utf-8?B?TnVtcHR5?= Windows XP MovieMaker 5 23rd Mar 2004 03:50 AM
Compressing Files Melanie Windows XP General 4 25th Oct 2003 03:25 PM
Compressing files Windows XP Video 0 25th Oct 2003 07:04 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:33 PM.