Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. serious problem in accessing data in datagrid in vb 6.0

serious problem in accessing data in datagrid in vb 6.0

Scheduled Pinned Locked Moved Visual Basic
help
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sandeep_thakur
    wrote on last edited by
    #1

    I am using the following code Dim con As ADODB.Connection Set con = New ADODB.Connection Set rs = New ADODB.Recordset con.Provider = "Microsoft.Jet.Oledb.4.0" con.Open "C:\Documents and Settings\Administrator\Desktop\Sandy\db2.mdb" rs.Open "select * from student", con Set dg1.DataSource = rs the error is The rowset is not bookmark:confused:

    D 2 Replies Last reply
    0
    • S sandeep_thakur

      I am using the following code Dim con As ADODB.Connection Set con = New ADODB.Connection Set rs = New ADODB.Recordset con.Provider = "Microsoft.Jet.Oledb.4.0" con.Open "C:\Documents and Settings\Administrator\Desktop\Sandy\db2.mdb" rs.Open "select * from student", con Set dg1.DataSource = rs the error is The rowset is not bookmark:confused:

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Reposting your question every 2 hours until someone gives you the answer you want, will only get you ignored... Dave Kreskowiak Microsoft MVP - Visual Basic

      1 Reply Last reply
      0
      • S sandeep_thakur

        I am using the following code Dim con As ADODB.Connection Set con = New ADODB.Connection Set rs = New ADODB.Recordset con.Provider = "Microsoft.Jet.Oledb.4.0" con.Open "C:\Documents and Settings\Administrator\Desktop\Sandy\db2.mdb" rs.Open "select * from student", con Set dg1.DataSource = rs the error is The rowset is not bookmark:confused:

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        Try specifying the cursor location. Add this to your code:

        Dim con As ADODB.Connection
        Set con = New ADODB.Connection
        Set rs = New ADODB.Recordset
        con.Provider = "Microsoft.Jet.Oledb.4.0"
        con.Open "C:\Documents and Settings\Administrator\Desktop\Sandy\db2.mdb"
        rst.CursorLocation = adUseClient
        rs.Open "select * from student", con
        Set dg1.DataSource = rs

        IIRC, Access databases don't support server-side cursors... Dave Kreskowiak Microsoft MVP - Visual Basic -- modified at 11:58 Thursday 4th May, 2006

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups