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

    ADO to Access 2000

    How can I get data from Access 2000 with ADO here is my code but I get error "Unreconized database format", this code is working with Access 97.

    Private Sub Form_Load()
    Adodc1.ConnectionString = "provider=microsoft.jet.oledb.3.51;" & "persist security info=false;" & "data source=c:\caset.mdb"

    Adodc1.RecordSource = "select*from 21Temp"
    Set Combo1.DataSource = Adodc1
    Combo1.DataField = "hej"
    End Sub


  2. #2
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: ADO to Access 2000

    Access 2000 needs Jet 4.0+, so you should change the connectionstring to use 4.0, not 3.51

    Tom Cannaerts
    [email protected]

    Programming today is a race between software engineers striving to build bigger and better idot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

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