Results 1 to 2 of 2
  1. #1
    2 Star Lounger
    Join Date
    Mar 2001
    Location
    Northern, NJ, New Jersey, USA
    Posts
    107
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Using Access to Create Folders on Drive (2000 SP4)

    I want to create folders on a network drive from a form where the user will enter the name of the folder in a txt box.
    There is always a way.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 28 Times in 28 Posts

    Re: Using Access to Create Folders on Drive (2000 SP4)

    Put a command button on the form, with code like this:

    Private Sub cmdCreateFolder()
    On Error GoTo ErrHandler
    MkDir Me.txtFolderName
    Exit Sub

    ErrHandler:
    MsgBox Err.Description, vbExclamation
    End Sub

    Instead of MkDir, you can also use CreateObject("Scripting.FileSystemObject").CreateF older

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •