can anyone help me in writing code to open a text file for processing in access. i am trying to make this happen automatically and can't seem to find a good example of how to do it.
Look in Help for Open Statement, Input Statement, Close Statement, etc...
Brief example:
Dim MyIndex, FileNumber
For MyIndex = 1 To 5 ' Loop 5 times.
FileNumber = FreeFile ' Get unused file number.
Open "TEST" & MyIndex For Output As #FileNumber 'Create filename.
Write #FileNumber, "This is a sample." ' Output text.
Close #FileNumber ' Close file.
Next MyIndex
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.