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

    Data control error "unrecognised database format" on A2K DB

    I am trying to use the data control in VB6 to open a A2K database but I get the message
    "Unrecognised database format". I'm sure I can change it with the references but I have tried this and failed.

    Help appreciated




  2. #2
    Join Date
    Jan 2000
    Location
    Saskatchewan, Canada
    Posts
    595

    Re: Data control error "unrecognised database format" on A2K DB

    DAO 3.6 Object Library
    ADO 2.5 Object Library

    The lastest service pack (sp5) contains this.

    David Paulson

  3. #3
    Join Date
    Apr 2001
    Location
    UK
    Posts
    14

    Re: Data control error "unrecognised database format" on A2K DB

    Thanks for responding, I'll get the service pack from the microsoft site.
    I wasn't sure whether to use DAO or ADO for my system. It is basically a question system with tables stored on the local drive. It sends results to a management system accross the network when a test is completed. So there is little communication with the backend database. I'm still learning ADO and trying to avoid using it if possible. Antway I'm told that as DAO is the native language of Jet and will probably be more reliable.

    thanks again

    John Lamb


  4. #4
    Join Date
    May 2000
    Location
    New York, NY, USA
    Posts
    2,878

    Re: Data control error "unrecognised database format" on A2K DB

    If you are using both DAO and ADO in your program you have to define the recordset as
    Dim rs AS DAO.Recordset
    or
    Dim rs AS ADODB.Recordset

    When you are reffering to Db also use prefix DAO or ADODB.

    Iouri Boutchkine
    [email protected]
    Iouri Boutchkine
    [email protected]

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