Results 1 to 2 of 2

Thread: Create Connection To Database

  1. #1

    Thread Starter
    Lively Member Totally Confused's Avatar
    Join Date
    Nov 2000
    Location
    Stoke-On-Trent,England
    Posts
    75
    Hi,
    I am trying to set up a DSN-Less connection to an Access 2000 database but am struggling a little bit.

    I am using
    Code:
    'Straight out of a book
    CN.ConnectionString= "Provider=Microsoft.Jet.OLEDB.3.51;_
       Data Source=E:\Football Database\Football.mdb"
    CN.Open
    but all I keep getting is an error saying 'Unrecognised Database format'

    I have set up a reference to Microsoft ActiveX Data Objects 2.5 Library.

    What am I doing wrong?

    How can I connect to this database

    Thanks

    Totally




  2. #2

    Thread Starter
    Lively Member Totally Confused's Avatar
    Join Date
    Nov 2000
    Location
    Stoke-On-Trent,England
    Posts
    75
    hehe....Sorted.

    Should have read the other posts first. This was answered a few questions down.


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