Click to See Complete Forum and Search --> : SQL Query in VB 5.0


sle
November 29th, 1999, 02:19 PM
Can anyone tell me how to get the total number of records in a recordset by using "Select count(*) from table" in VB 5.0?

Crazy D
November 29th, 1999, 04:59 PM
rs.Open "SELECT COUNT(*) FROM mytable"
Debug.print rs.Fields(0)
rs.Close

Crazy D :-)
"One ring rules them all"