Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2004
    Posts
    1

    Unanswered: Error trying to connect to database

    I'm writing an application in VB-6, to make use of an Access database. Operating system is Windows 2000.

    I'm using the following provider in my connection string:
    "Provider=Microsoft.JET.OLEDB.4.0;Data Source=c:\database.mdb"

    However, when I try to open the database, I keep getting the following error:

    "Provider cannot be found. It may not be properly installed."

    What do I need to install to make this work? I've included Microsoft ActiveX Data Object 2.6 Library in my References list, installed Jet 4.0 Service Pack 8 from the Microsoft website, the database path is correct. But still no joy.

    Any ideas how to make this work, or any additional drivers missing?

    Thanks.

  2. #2
    Join Date
    Oct 2004
    Posts
    5
    where do you save your database?
    is it under any folder?

    "Provider=Microsoft.JET.OLEDB.4.0;Data Source=c:\database.mdb"
    try to change the path of your file and see...

  3. #3
    Join Date
    Jul 2004
    Posts
    3
    I dont' thnk that this will do much.
    You must have Microsoft ActiveX Data Object 2.7 Library
    and it will work fine

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •