Bubba Jones
asked on
Import file listing into access database
I am hoping someone has some MS ACCESS VBA code that can point to a given file path, say, "H:\" , locate only .ZIP and build a table named PACKAGES (or overwrite the existing PACKAGES table) , and add the following fields:
1. File Creation date
2. File Creation Time
3 File Size
3. File Name
1. File Creation date
2. File Creation Time
3 File Size
3. File Name
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Wow! Crystal and Bill, thanks for your suggestions, apologies, I was out of town, and tied up.
Bill - Is there a way to have your code look through sub-folders as well, and can it possibly accept a UNC path, vs a drive letter and colon ?
Crystal - when trying LoopFilesAndStore("H:\", "*.zip") in your solution, I get a "COMPILE ERROR, EXPECTED =" If I do not specify a file mask, it runs against the parent folder. Is it also possible to do all sub folders, and a UNC ?
Bill - Is there a way to have your code look through sub-folders as well, and can it possibly accept a UNC path, vs a drive letter and colon ?
Crystal - when trying LoopFilesAndStore("H:\", "*.zip") in your solution, I get a "COMPILE ERROR, EXPECTED =" If I do not specify a file mask, it runs against the parent folder. Is it also possible to do all sub folders, and a UNC ?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window
EE29023723.accdb
»bp