Dim rs As DAO.Recordset
'Table to accept input
Set rs = CurrentDb.OpenRecordset("tblTable1")
'File for input
Open CurrentProject.Path & "\imp.txt" For Input As #1
Do While Not EOF(1)
'Get line
Line Input #1, strString
'Add line to table
rs.AddNew
rs!Field1 = strString
rs.Update
Loop
Close #1
rs.Close
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.