Results 1 to 2 of 2

Thread: using Datagrid

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2001
    Location
    mauritius
    Posts
    13

    Question

    I am trying to display a table in a datagrid. I have written the necessary codes to open the database and also the recordset.
    I have set the datasource of the datagrid to the recordset but when I run it, I receive an error message telling me 'The Rowset is not bookmarkable'

    Dim Tble As ADODB.Recordset

    Set Tble = New ADODB.Recordset

    Tble.Open "temp", adodbConnection, adOpenDynamic, adLockOptimistic

    Set Data1.DataSource = Tble

    if there is any errors, please indicate them to me or else give me the codes that are required to connect my table to the datagrid

    thanks

  2. #2
    Fanatic Member Psyrus's Avatar
    Join Date
    Jul 2000
    Location
    NJ
    Posts
    602
    This link addresses your problem.

    http://support.microsoft.com/support.../Q278/4/08.ASP

    To fix this you must replace the constant adOpenDynamic with adOpenKeyset or adOpenStatic.
    Chris

    VB 6.0 Calendar App Video Gamers Group
    Don't forget to rate people if they helped you.

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