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

    problem connecting to access

    i try to connect my project in interdev to a local copy database on my comp using add connection method. but an error call "ADO could not find the specified provider" occur...

    any idea?


  2. #2
    Join Date
    Jul 1999
    Location
    Athens, Hellas
    Posts
    769

    Re: problem connecting to access

    Goto: Control Panel->ODBC32Bit->System DSN->Add->Microsoft Access Driver->Finish.
    Give a Data Source Name (your choice) and then select the database (the .mdb file). After that, in your code you must point to this connection with the source name you provided (e.g. if you gave a name "MyDB", then you must type:

    Dim db as adodb.Connection
    set db = new adodb.Connection
    db.Open "PROVIDER=MSDASQL.1;Data Source=MyDB;"




    Michael Vlastos
    Company MODUS SA
    Development Department
    Athens, Greece
    Tel: +3-01-9414900

  3. #3
    Join Date
    Jul 1999
    Posts
    58

    Re: problem connecting to access

    hai michael..

    i try it out.. didn't work.. still the same problem... =(

    i'm using ADO in interDev... is there any different from VB?


  4. #4
    Join Date
    Jul 1999
    Location
    Athens, Hellas
    Posts
    769

    Re: problem connecting to access

    Sorry my friend, beyond my knowledge...

    Michael Vlastos
    Company MODUS SA
    Development Department
    Athens, Greece
    Tel: +3-01-9414900

  5. #5
    Join Date
    Jul 1999
    Posts
    58

    Re: problem connecting to access

    is ok.. thanks anyway


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