Question

Asked on 2010-02-21 at 13:51:48ID: 27013778

    AccessVB: List all files in a folder

    by: ouestque500

    Rating9.3Excellent

    I have a table titled: "ListFileNames" with 2 columns titled: "FileName" and "FileLocation". What VB code would I use so that it would list the names and locations of all files in a selected folder.

    *Pretend the location of my files are in: "C:\FileList" and that this folder contains 5 files:"Financials.xls, Statistics.mdb, Resume.doc, Accounting.txt, Help.txt"

    If you ran the vb code then the table "ListFileNames" will look like this...

    ColumnName:    FileName                            FileLocation
                             Financials.xls                     C:\FileList      
                             Statistics.mdb                     C:\FileList  
                             Resume.doc                        C:\FileList  
                            Accounting.txt                     C:\FileList  
                            Help.txt                                C:\FileList  

    Related Solutions

    Solution

    Sign up now to view this solution! It's quick, easy, and secure to subscribe. We will return you to this solution, unlocked, when you’re done.

    About this Solution

    View This Solution - Start Your 30 Day Free Trial
    Zone
    Coding-Macros
    Tags
    Participating Experts
    1
    Solution Grade
    A

    Replies

     by: CvD

    Posted on 2010-02-21 at 14:24:49ID: 35666697

    All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

    Log In

    Forgot your password?Sign up

    Top Experts

    1. jimpen

      2,000

      0 points yesterday

      Profile

    BrowseAre you an Expert?