Zip files within Access

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a way to compress files to a Zip file using VBA without requiring
the users to have Winzip or similar installed?

TIA
 
I prefer Winzip to any other solution. It is reliable, fast, and
configurable. That said I have used free zipping utilities with good
success. The one I like the best is FreeByteZip:

http://www.freebyte.com/fbzip/

' This statement adds i:\data\mydocument1.doc to the test1.zip zip archive.
If the zip file does not exist, it will be created. Directories are
recursed, and path information is stored in the zip file.

Dim x

x= Shell(c:\Utilities\fbzip.exe -a -p -r "c:\test1.zip"
"i:\data\mydocument1.doc"

HTH,
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads:
http://www.datastrat.com
http://www.mvps.org/access
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top