Results 1 to 2 of 2
  1. #1
    Madmax is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jun 2011
    Posts
    80

    Deleting Folders

    Hello,



    So I did a nice wonderful code that creates/opens a folder for each person in my database.

    now I had a few people out-process but before I want my database to delete them I want there folders on the drive to delete as well

    to open the folder I use VBA:Application.FollowHyperlink LFolderpath

    what would I use to delete LFolderpath? I dont mind hitting the yes after the folder is deleted for confirmation but if that could be automated too that would save headaches later.

    Thoughts?

    -MadMax

  2. #2
    pdebaets is offline Competent Performer
    Windows Vista Access 2010 (version 14.0)
    Join Date
    Jul 2010
    Location
    Los Angeles
    Posts
    235
    You can delete a folder with the "RmDir" statement. You may need to delete any files in the folder first. You can use the "Kill" statement to delete files.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Hyperlink to network folders
    By smannon in forum Forms
    Replies: 1
    Last Post: 10-24-2011, 02:42 PM
  2. Replies: 3
    Last Post: 01-25-2011, 09:50 AM
  3. Replies: 11
    Last Post: 12-14-2010, 01:25 PM
  4. Deleting a file
    By fiamma68 in forum Access
    Replies: 3
    Last Post: 11-07-2010, 06:10 PM
  5. Import from various folders
    By Statique in forum Import/Export Data
    Replies: 2
    Last Post: 07-02-2009, 06:10 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums