datagrid绑定recordset出错:The Rowset is not bookmarkable!??
如题。
Set cnn = New ADODB.Connection
cnn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\lab.mdb; Persist Security Info=False"
cnn.Open
Set rc = New ADODB.Recordset
rc.Source = "Select * from Animals"
Set rc.ActiveConnection = cnn
rc.CursorType = adOpenDynamic
rc.Open
Set DataGrid1.DataSource = rc