Results 1 to 2 of 2

Thread: Datagrid without ADODC,urgent

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2001
    Posts
    8

    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.

  2. #2
    Member
    Join Date
    Jan 2001
    Location
    Richmond, VA
    Posts
    59
    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
  •  



Click Here to Expand Forum to Full Width