I have a text file that is read using the code below. What I need to do is populate one field from a line depending on the value in strValue then loop to the next line and populate the remaining fields in the table.
Code:
Do While f.AtEndOfStream <> True
strBuffer = f.readline
astrBufferArray = Split(strBuffer, " ")
strValue = astrBufferArray(0)
rs.AddNew
txtMessage = Split(astrBufferArray(6), Chr(9))
rs!Type = Left(strValue, 1)
rs!Date = Mid(astrBufferArray(0), 4, 10)
rs!Time = Mid(astrBufferArray(0), 15, 5)
rs.Update
Loop