Garry Robinson's Popular MS Access, Office and VB Resource Site


Home  Contact Us

Order Software

Search vb123

 Smart Access  
The Magazine that Access Developers loved to read and write for is back
Article Index Here or
Purchase Here

RSS & Newsletter  
Join our XML/RSS Newsfeed or sign up for our informative newsletter on Office Automation, Access and VB topics
Sign up here

Get Good Help
If you need help with a database, our Australian Professionals could be the answer
Read More

123 For Office

Great shortcuts, supports Office 2013 to 2003, easy zipping.
Read More

  The Workbench  Find out who has your database open, start the correct version of Access, easy compacting and zip backups, change startup options,  compile, shutdown database
Read and Download

Access > SqlServer 
Upsize to SQL Server 2005 or 2008, easily repeated conversions, highly accurate SQL query
translation and web form conversion.
Read More

Like FMS Products?
Purchase them from us and get a free Workbench or Smart Access  More

Garry's Blog
Find out a few other things that Garry has been writing about Microsoft Access. Read more

About The Editor Garry Robinson writes for a number of popular computer magazines, is now a book author and has worked on 100+ Access databases. He is based in Sydney, Australia
Contact Us ...



Next Tip   Zip A File

Here I will show you a simple way to add a file to a zip file using Access VBA and WinZIp

Call ZipFile_FX("c:\a.zip", "c:\a.xls")

Private Sub ZipFile_FX(ZipFileName As String, fileToBeZipped As String)

  Const ZIPEXELOCATION = "c:\program files\winzip\winzip32.exe"

  Shell ZIPEXELOCATION & " -a " & Chr(34) & ZipFileName & Chr(34) & _
" " & Chr(34) &   fileToBeZipped & Chr(34), vbNormalFocus

End Sub

Command line parameters for WinZip
Winzip is one of the most popular programs on the planet and if you want to automate it, they recommend upgrading to Winzip Pro and installing the free command line utility. If you want to try command line parameters without upgrading to Winzip pro, try the commands on this page using Windows Start then the Run text box.   Read more here

Author Bio.

Garry Robinson has been involved in over a 100 Access projects, edits his companies web site at  http://www.vb123.com/  and is a contributing editor to the Smart Access magazine.  When Garry is not sitting at a keyboard, he can be found playing golf or swimming down at his local Sydney beach.   Contact details  www.gr-fx.com

Other Pages at VB123.com That You May Want To Visit

Cleaning Up An Access Database

Converting Excel Spreadsheets To Microsoft Access

Outside Vb123.com

How to Zip using Windows Library

PolarZip is easy to write code for as long as you can handle DLL installs

Try this idea


Click on the Next Tip button for the next help page in this Access Loop.


Links >>>  Home | Search | Workbench | Orders | Newsletter | Access Security | Access professionals