Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2006
    Posts
    157

    Unanswered: delete all files from a folder in Access

    Hi:
    How to delete all files from a folder in Access

    Thanks,

  2. #2
    Join Date
    Feb 2004
    Location
    Chicago, IL
    Posts
    1,312
    You can use the Dir() function and the Kill() function to accomplish it.

    dim strFilename as string
    dim strPath as string

    strPath = YoutPath

    strFilename = Dir(strPath)

    While strFilename <>""

    Kill strPath & "\" & strFilename
    strFilename=Dir()

    Wend

Posting Permissions

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