Mega Code Archive

 
Categories / VisualBasic Script / Access
 

The RecordCount Property Is Not Supported with a Forward-Only Recordset

Sub ForwardOnlyRecordset()     Dim rst As ADODB.Recordset     Set rst = New ADODB.Recordset     rst.ActiveConnection = CurrentProject.Connection     rst.Open "Select * from Employees"     Debug.Print rst.RecordCount     rst.Close     Set rst = Nothing End Sub