Results 1 to 5 of 5

Thread: odbc and access driver

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2000
    Posts
    15
    my ODBC won't recognize access2000. so I get Jet version 4.0 service pack 3 and download it. I also put the file dao360.dll under DAO like what it says. but my access drive in the ODBC is still 3.51 instead of 4.0 and I think that is probably why it still couldn't recognize the access2000.
    can anybody tell me what else I should do to make this work?
    thank you very much.

  2. #2
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844
    Hi JX

    I tried to create a DSN for Access 2000 and open it with DAO 3.6 and ADO with the Jet 4.0 provider, but it appears as if you cannot use a DSN with an Access 2000 database, you'll need to use DAO 3.6 or ADO directly....

  3. #3
    Hyperactive Member
    Join Date
    May 1999
    Location
    Reynosa, Mexico
    Posts
    274
    Could you put the line code you're using to open the DB?
    Ulises Vázquez
    [size=1.7]Oracle DBA Certified Professioanl
    Visual Basic 6 Developer
    Crystal Reports Designer
    [/size]

  4. #4

    Thread Starter
    New Member
    Join Date
    Feb 2000
    Posts
    15
    I don't have the code for connection. I only choose the connection string in the property window and created a dsn for the access driver.
    maybe I need to write code instead. what should I put down for the code?
    thanks for advance

  5. #5
    Hyperactive Member
    Join Date
    May 1999
    Location
    Reynosa, Mexico
    Posts
    274
    Well, you must can do it by the properties window but, I prefer to use code to do it and use ADO instead DAO.

    A sample code to open the DSN database is:
    Code:
    DIM Cn as ADODB.Recordset
    strConnect = "DSN=" & CapContDSN & ";UID=;PWD=;OLE DB Services=-1;"
    Cn.ConnectionString = strConnect
    Cn.Open
    Cn.CursorLocation = adUseServer
    I hope this point you in a better way.

    Good Look!


    Ulises Vázquez
    [size=1.7]Oracle DBA Certified Professioanl
    Visual Basic 6 Developer
    Crystal Reports Designer
    [/size]

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