•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the MS Access and FileMaker Pro section within the Web Development category of DaniWeb, a massive community of 423,112 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,325 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MS Access and FileMaker Pro advertiser: Programming Forums
Views: 614 | Replies: 0
![]() |
•
•
Join Date: Nov 2007
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
I am trying to import several files to access. I have the code to search the C:\ drive but I need to look thru all the folders also. Below is what I have so far the works. Thanks in advance for any help. Wayne
Dim strfile1 As String
Dim strfile2 As String
Dim strmsg As String
strmsg = "All Incoming files have been Successfully Imported and Deleted!"
ChDir ("C:\")
strfile1 = Dir("*.sta")
strfile2 = "status.txt"
Do While Len(strfile1) > 0
FileCopy strfile1, strfile2
DoCmd.TransferText acImportFixed, "Specifiation", "tblName", strfile2, False
Kill "C:\" & strfile1
Kill "C:\" & strfile2
strfile1 = Dir
Loop
MsgBox (strmsg) Last edited by Tekmaven : Jul 17th, 2008 at 12:36 pm. Reason: Code tags
![]() |
•
•
•
•
•
•
•
•
DaniWeb MS Access and FileMaker Pro Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Putting files in Jlist (Java)
- Importing Files (Visual Basic 4 / 5 / 6)
- Inserting a new Access Database Record (VB.NET)
- How to manage .edb files? (MS Access and FileMaker Pro)
- cgi (HTML and CSS)
- Sequential Access Data Files (Visual Basic 4 / 5 / 6)
Other Threads in the MS Access and FileMaker Pro Forum
- Previous Thread: Access 2003 VBA Book
- Next Thread: Add Column to Access Table with Macro


Linear Mode