D
D.
Hi,
I need to know how many records i get from a sql statement.
I use this and it works (amount of records = rec), but is there no better
way to to that?
Thanks
Dominique
...
comd = New System.Data.OleDb.OleDbCommand(sql, oConnection)
dtreader = comd.ExecuteReader
If dtreader.HasRows Then
While dtreader.Read()
rec = rec + 1
End While
End If
dtreader.Close()
I need to know how many records i get from a sql statement.
I use this and it works (amount of records = rec), but is there no better
way to to that?
Thanks
Dominique
...
comd = New System.Data.OleDb.OleDbCommand(sql, oConnection)
dtreader = comd.ExecuteReader
If dtreader.HasRows Then
While dtreader.Read()
rec = rec + 1
End While
End If
dtreader.Close()