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

    Question Database format not recognize when using data

    hello guys! I need ur advices.... here's the problem i encountered. I use MS ACCESS as my database and the data for the connection. when i set the properties, it displays a message that says, database format not recognize. I'm using VB 6.0 and MS ACCESS 2000. Is there any other way that I can connet to the database and 1 more. How can I populate the listview with my data from the database, coz i can get it. Thank You! I really appreciate it!

  2. #2
    Join Date
    Aug 2004
    Posts
    13

    Re: Database format not recognize when using data

    are you using a dsn or dsnless connection ? ideally you want to use a dsnless connection., but dsn's are easier

  3. #3
    Join Date
    Aug 2003
    Location
    Sydney, Australia
    Posts
    1,901

    Re: Database format not recognize when using data

    What are your references to the Project?

    Are you using DAO 3.6 or ADO 2.7 or above?

    Earlier references will give you your symptoms

  4. #4
    Join Date
    Aug 2004
    Posts
    15

    Smile Re: Database format not recognize when using data

    actually ADO but i realized that I still don't know the ins and outs of the ADO.

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

    Re: Database format not recognize when using data

    Most likely, you are using the wrong (older) provider.
    To connect to an Access 2000 database, you will need to use Jet 4, not Jet 3.5.

    The complete provider string is "Microsoft.Jet.4.0"

    Depending on how you open your connection, you will need to change the Provider property of the connection object, or you will need to alter the provider option in the connectionstring.
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

  6. #6
    Join Date
    Oct 2003
    Location
    .NET2.0 / VS2005 Developer
    Posts
    7,104

    Re: Database format not recognize when using data

    hate to correct a moderator and all;),but the provider is Microsoft.Jet.OLEDB.4.0

    here is an example connection string:

    Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\dev\MadrEIs\madreis.mdb;Mode=ReadWrite|Share Deny None;Persist Security Info=True;Jet OLEDB:Database Password=this is the access database passsword

    note that for access databases that have a password, you DO NOT use password=BLAH in the provider strng, you should use... jet oledb:database password=BLAH as shown above. if your database doesnt have a password, you can omit this section, which would give you a conn string of just:

    Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\dev\MadrEIs\madreis.mdb;Mode=ReadWrite|Share Deny None;Persist Security Info=True
    "it's a fax from your dog, Mr Dansworth. It looks like your cat" - Gary Larson...DW1: Data Walkthroughs 1.1...DW2: Data Walkthroughs 2.0...DDS: The DataSet Designer Surface...ANO: ADO.NET2 Orientation...DAN: Deeper ADO.NET...DNU...PQ

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

    Re: Database format not recognize when using data

    Quote Originally Posted by cjard
    hate to correct a moderator and all,but the provider is Microsoft.Jet.OLEDB.4.0
    You got me there
    I was just checking to see if anyone would notice... honest
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

  8. #8
    Join Date
    Jul 2005
    Posts
    1

    Re: Database format not recognize when using data

    Sorry, but I'm using VB 6.0, with SP6, and Access 2002, and it still does not recognize my db format.
    Jet 4.0 execution is automatic with SP6, isn't it?.
    May the Office XP Home, SPANISH version, be having problems?.
    Thanks. Guillermo.

  9. #9
    Join Date
    Jun 2005
    Location
    gandhinagar,gujarat
    Posts
    51

    Talking Re: Database format not recognize when using data

    and will you please show the string...what is the provider for ms excel 97 as well as excel 2000.. for ADO as well as RDO...

    tx in advance

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