I'm doing a query in a database, however I need to know how many records I'll get from this query, before I even start the loop.
Note: I do not want to put a counter inside the mesh, I need the value before *
cmd = New OleDbCommand(sql, conexao)
myDR = cmd.ExecuteReader(CommandBehavior.CloseConnection)
while myDR.read
...
end while