Mega Code Archive

 
Categories / VisualBasic Script / Access
 

Supplying the CursorType as a Property of the Recordset Object

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