|
-
Nov 7th, 2001, 03:33 AM
#1
Thread Starter
New Member
Datagrid without ADODC,urgent
I am connecting a ado with datagrid. Everything works fine till I set the datagrids datasource.
This line gives error -
Set DataGrid1.DataSource = rs
DataGrid1.Refresh
the error is - rowset is not updatable.
-
Nov 7th, 2001, 06:24 AM
#2
Member
Do you have write access to the data??
--------------------------------------------------------
Option Explicit
Private adoRS As ADODB.Recordset
Private Sub Form_Load()
Set adoRS = New ADODB.Recordset
With adoRS
.ActiveConnection = <your connect string>
.CursorLocation = adUseClient
.LockType = adLockPessimistic
.Source = "Select * from fund"
.Open
End With
Set DataGrid1.DataSource = adoRS
End Sub
--------------------------------------------------------
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|