Creating multiple zip files with multiple documents

C

Carrie L.

I have a list of about 800 people who need to get multiple (different) Word
documents. I want to create a program that will read my list, create
individual zip files and load them with the designated word documents for
each person. Is anything like that possible?
 
R

Roger Carlson

Well, I'm almost embarrassed to suggest this, but on my website
(www.rogersaccesslibrary.com), is a small Access database sample called
"Zip97.mdb" which illustrates how to do something like this. You can find
it here:
http://www.rogersaccesslibrary.com/forum/forum_posts.asp?TID=214 .

Disclaimer: It was written originally in Access 2.0 and converted to Access
97. It uses a DOS based version of PKZIP utility. It is also built for
manually selecting and zipping multiple documents. However, it might give
you some ideas.

--
--Roger Carlson
MS Access MVP
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/wa.exe?SUBED1=ACCESS-L
 
C

Carrie L.

Thank you for the response Roger. I'm just a novice programmer with a big
job to do. I took a look at your coding, but i think it's too complicated
for me to try to convert. I can't use the exe files because my company
doesn't allow downloading/running them without extensive testing. I think if
I had the VBA coding required to add files to an existing winzip file, I may
be able to rig something up that I found on a different post. They had the
code for originally creating the file, but not for adding multiples. Any
clue?
 
R

Roger Carlson

Most of the coding in the application revolves around moving values between
the two listboxes. You wouldn't need to do any of that because you'd read a
table (or tables) with the values of the person and his/her documents.

The heart of the process is the ZipFileExecute_Click() subroutine which
basically opens a recordset containing the files you want zipped, creates a
text string out of them (ZippedFiles), and then builds a command line
command (AppName) to send to PKZIP with the Shell command:
x = Shell(AppName, 1)

AppName is a variable whose value looks something like this when it
executes:
C:\zip\pkzip.exe MyZipFil.zip test.sql test.csv tblCustomer.txt

You're obviously using some sort of zip utility already, so find out if
there is a command line option for it. WinZip has a command line add-on
http://www.winzip.com/prodpagecl.htm which will allow you to do this. The
parameters might be different, but the process would be essentially the
same.

This process creates a single zip file, of xourse, so you'd have to add
another loop outside of this loop. You'd read the person, read all of
his/her files, create the zip, then read the next person -- and so on.

Good luck.

--
--Roger Carlson
MS Access MVP
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/wa.exe?SUBED1=ACCESS-L
 
T

Tony Toews [MVP]

Carrie L. said:
I have a list of about 800 people who need to get multiple (different) Word
documents. I want to create a program that will read my list, create
individual zip files and load them with the designated word documents for
each person. Is anything like that possible?

See the Sample Code illustrating looping through a DAO recordset page
at the Access Email FAQ at
http://www.granite.ab.ca/access/email/recordsetloop.htm

Compression DLLs, OCXs, etc
http://www.granite.ab.ca/access/compression.htm

You will need to work with VBA though.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/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

Top