Not sure how to answer all of your question. Populating an ADO Recordset with data from a text file is possible. After instantiating a Recordset you can append fields as shown below
Set rs = New ADODB.Recordset
With rs
.Fields.Append "Value1", adVarChar, 100
.Fields.Append "Value2", adVarChar, 100
.Open
End With
After you have fields in your (disconnected Recordset) you can start dropping off data in the Recordset. I envision this bit of code inside a loop that’s reading your text file(s)
With rs
.AddNew
!Value1 = "Data From Text File1"
!Value2 = 'Data From Text File2"
.Update
End With
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.