Hi all,
(This was posted on the Access other topics forum, but I realized this might be a better place. Please let me know if you have any ideas.)
I am trying to automate the zipping of output files using winzip's command line support add on. While testing, I have it set to print the string I'm sending to the shell. I take this string and run it in the shell manually, and it works fine. However, Access is having trouble sending it to the shell. Here is some of my code, let me know if you have any ideas.
Any help is greatly appreciated.
Thanks a lot,
Alex
It's a magical time of year in Philadelphia. Eagles training camp marks the end of another brutal season of complaining about the Phillies.
(This was posted on the Access other topics forum, but I realized this might be a better place. Please let me know if you have any ideas.)
I am trying to automate the zipping of output files using winzip's command line support add on. While testing, I have it set to print the string I'm sending to the shell. I take this string and run it in the shell manually, and it works fine. However, Access is having trouble sending it to the shell. Here is some of my code, let me know if you have any ideas.
Code:
filedate = (DateAdd("d", -1, Date))
fnamedate = Format(filedate, "mmddyy")
fname = fnamedate & "apps1a"
fdir = "S:\File\Directory\"
c0 = """C:\Program Files\WinZip\wzzip.exe"""
c1 = fdir & fname & ".zip"
c2 = fdir & fname & ".pdf"
zipper = c & c0 & " " & c1 & " " & c2
(code to create pdf file)
Call Shell(zipper)
MsgBox "Application File Created and Zipped"
Any help is greatly appreciated.
Thanks a lot,
Alex
It's a magical time of year in Philadelphia. Eagles training camp marks the end of another brutal season of complaining about the Phillies.