I am trying to read a text file (array) into access through VB. This is what I have but no matter what recordset function I try it doen't work. How do I get the information from one row and then move to the next record to get the info from the next row?
Here is what I have:
Do While Not EOF(1)
Input #1, strFName(row, 1), strLName(row, 2), straddress(row, 3), strCity(row, 4), strState(row, 5), strZip(row, 6)
numFiles = numFiles + 1
txtFName.Text = strFName(row, 1)
txtLName.Text = strLName(row, 2)
txtAddress.Text = straddress(row, 3)
txtCity.Text = strCity(row, 4)
txtState.Text = strState(row, 5)
txtZip.Text = strZip(row, 6)
Loop
Here is what I have:
Do While Not EOF(1)
Input #1, strFName(row, 1), strLName(row, 2), straddress(row, 3), strCity(row, 4), strState(row, 5), strZip(row, 6)
numFiles = numFiles + 1
txtFName.Text = strFName(row, 1)
txtLName.Text = strLName(row, 2)
txtAddress.Text = straddress(row, 3)
txtCity.Text = strCity(row, 4)
txtState.Text = strState(row, 5)
txtZip.Text = strZip(row, 6)
Loop