Results 1 to 3 of 3
  1. #1
    cbende2's Avatar
    cbende2 is offline Competent Performer
    Windows 7 32bit Access 2013
    Join Date
    Jun 2014
    Location
    Louisiana
    Posts
    370

    Question Creating folders through access

    Hello all,



    I'm looking for a way to create folders in window explorer through the click of a button in access.

    I would like for it to generate a nest of folders based on the different fields in my record.

    When the user clicks a button, It takes Field1 and creates a folder(only if Field1 doesnt already have a folder), then it creates a subfolder in Field1 with Field2.

    So the path would be R:\Field1\Field2

    Any help would be greatly appreciated, or if anyone can reference me to something similar that would be a great as well!

    Thanks

  2. #2
    nick404's Avatar
    nick404 is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    May 2015
    Location
    Wisconsin
    Posts
    352
    Could use MkDir(file path) function.

    This may help you: http://www.techonthenet.com/access/f...file/mkdir.php
    The FAQ on the bottom shows how to check for an existing directory and if not then create one.
    Hope it helps!

  3. #3
    cbende2's Avatar
    cbende2 is offline Competent Performer
    Windows 7 32bit Access 2013
    Join Date
    Jun 2014
    Location
    Louisiana
    Posts
    370
    Thanks nick, I came across some code that was similar to what I needed and made the adjusted fixes.

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

Similar Threads

  1. Replies: 7
    Last Post: 04-30-2014, 06:55 AM
  2. Importing Outlook 2010 folders into Access
    By the_chomp in forum Access
    Replies: 3
    Last Post: 01-22-2013, 06:02 PM
  3. Access collection of files and folders?
    By pctechtv in forum Access
    Replies: 1
    Last Post: 11-13-2011, 05:50 PM
  4. Replies: 3
    Last Post: 01-25-2011, 09:50 AM
  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