I don't think I understand your question. Do you want to copy a file to a zip drive from within Access? The database itself that you are in or some other external files? You can manipulate external files from within Access by using the Microsoft Scripting Runtime Library. Set a reference to it.<br><br>Sample<br><br>Sub DeleteIt(filetodelete As String)<br><br> ' use this to delete files on the system<br> Dim fs As FileSystemObject<br> Set fs = CreateObject("Scripting.FileSystemObject"<br> fs.DeleteFile filetodelete<br> <br>End Sub<br><br>This will delete any file you pass to the procedure. You can also do copies, moves, etc.
Can you tell me the last command inorder to copy the database file into a specific driver. I'm going to use this to enable a user to make a backup copy of the db by just pressing a button within Access.
Why not just use the command line switch to compact the database to another drive?<br><br>/compact <br><br>target database or target Access project Compacts and repairs the Access database, or compacts the Access project that was specified before the /compact option, and then closes Microsoft Access. If you omit a target file name following the /compact option, the file is compacted to the original name and folder. To compact to a different name, specify a target file. If you don't include a path in target database or target Access project, the target file is created in your My Documents folder by default. <br><br>(From Help)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.