Zip files within Access

N

N. Cotton

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

TIA
 
A

Arvin Meyer [MVP]

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
 
Top