CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2000
    Posts
    9

    ADO and DATAGRID

    Hi,

    I am using Access 97 Database and ADO 2.0 with the following string as provider:
    connstr = "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;"

    set datagrid1.datasource = rs

    It works and it populates the data in Data grid.
    But, when I try with ADO 2.5 and provider
    connstr = "Provider=Microsoft.Jet.OLEDB.4.0;Persist Security Info=False;" , it is not populating data in the data grid. I found the record set has data. But it is not populating. Can any one suggest in this regard? Thanks in advance,

    Satya



  2. #2
    Join Date
    Jul 2000
    Location
    Baton Rouge, Louisiana, USA
    Posts
    51

    Re: ADO and DATAGRID

    From my understanding, Microsoft.Jet.OLEDB.4.0 is the Provider for Access 2000 only. Use Microsoft.Jet.OLEDB.3.51 for Access 97.


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

Featured