- Код: Выделить всё
Dim cn As ADODB.Connection
Dim rs As ADODB.Recordset
Set cn = New ADODB.Connection
Set rs = New ADODB.Recordset
With cn
.Provider = "Microsoft.Jet.OLEDB.4.0"
.ConnectionString = App.Path & "\base\base.mdb"
.Open
End With
With rs
.ActiveConnection = cn
.LockType = adLockReadOnly
.CursorType = adOpenDynamic
.Source = "SELECT * FROM MyTable"
.Open
End With
DataGrid1.HoldFields
Set DataGrid1.DataSource = rs'здесь возникает ошибка: The RowSet is Not BookmarkAble
Возникает ошибка: The RowSet is Not BookmarkAble.
Подскажите, что неправильно?