Results 1 to 3 of 3

Thread: Directories

  1. #1
    Join Date
    Oct 2003
    Location
    London
    Posts
    341

    Exclamation Unanswered: Directories

    Hey guys,

    Can someone tell me how to write a vb code that will see if a folder exists?

    My access database creates a folder for its output files

    H:\Training\Evaluation\Reports

    H:\Training\Evaluation already exists and it creates the reports folder however everytime I run this it breaks because the reports folder is already there.

    How can I say that if the directory H:\Training\Evaluation\Reports exists then... or else... create H:\Training\Evaluation\Reports

  2. #2
    Join Date
    Nov 2003
    Location
    LONDON
    Posts
    238
    Look in the Help file for the FileSearch object - this will allow you to search for files and folders

  3. #3
    Join Date
    Sep 2004
    Location
    Tampa, FL
    Posts
    520
    Additionally there is a Fileexist method and a FolderExist method on VBA.
    Darasen

Posting Permissions

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