Hi all
i have created a dataset using the wizard and now i trying to loop through using eof and im getting an error. please see my code below:
Private Sub btnFix_Click
Dim conn As New ADODB.Connection()
Dim rec As New ADODB.Recordset()
conn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\line.mdb;User id=admin;Password=;"
conn.Open()
rec.Open("SELECT * FROM InvalidTable", conn, ADODB.CursorTypeEnum.adOpenDynamic)
While Not rec.EOF
If txtMSISDN.Text = txtEPX_MSISDN.Text Then
txtComment.Text = txtEPX_ACCOUNT.Text
End If
End While
i have created a dataset using the wizard and now i trying to loop through using eof and im getting an error. please see my code below:
Private Sub btnFix_Click
Dim conn As New ADODB.Connection()
Dim rec As New ADODB.Recordset()
conn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\line.mdb;User id=admin;Password=;"
conn.Open()
rec.Open("SELECT * FROM InvalidTable", conn, ADODB.CursorTypeEnum.adOpenDynamic)
While Not rec.EOF
If txtMSISDN.Text = txtEPX_MSISDN.Text Then
txtComment.Text = txtEPX_ACCOUNT.Text
End If
End While