Hi There,
I am trying to open a txt file with no header using vb6. my problem is that it's converting the first record as header. how can I solve this problem so that my first record will stay. Below is my code:
Private Sub ccommand1_Click()
Dim cnn As New ADODB.Connection, rs As New ADODB.Recordset
cnn.Open "DRIVER={Microsoft Text Driver (*.txt; *.csv)};DBQ=c:\temp, "", """
rs.Open "select * from file1.txt", cnn, adOpenStatic, adLockBatchOptimistic
rs.MoveFirst
MsgBox rs.Fields(0) '2nd record
rs.MoveNext
MsgBox rs.Fields(0) '3rd record
rs.close: cnn.close
End Sub
thanks in advance.
newvbguy