V
VB Programmer
I cannot get my recordcount to show up properly (using ADO 2.5). It keeps
showing -1!
Here's a snippet:
Dim dbMyDb As New ADODB.Connection
Dim rsWebData As New ADODB.Recordset
dbMyDb.Open gConnectionString
rsWebData.Open "SELECT * FROM WebDataLogAc;", dbMyDb, adOpenKeyset,
adLockOptimistic
rsWebData.MoveFirst
Debug.Print rsWebData.RecordCount
This always returns -1 even though there are records in the table. HELP!!!
Thanks!
showing -1!
Here's a snippet:
Dim dbMyDb As New ADODB.Connection
Dim rsWebData As New ADODB.Recordset
dbMyDb.Open gConnectionString
rsWebData.Open "SELECT * FROM WebDataLogAc;", dbMyDb, adOpenKeyset,
adLockOptimistic
rsWebData.MoveFirst
Debug.Print rsWebData.RecordCount
This always returns -1 even though there are records in the table. HELP!!!
Thanks!