Results 1 to 4 of 4

Thread: Database destination not found

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2002
    Posts
    9

    Database destination not found

    My problem is this... i used these coding to do the connection on my pc but when my frenz used it... error msg keep on prompting tt they cannot detect the database... can any1 tell me wats wrong wif my coding?
    ------------------------------------------------------------------------------------
    strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="
    strConn = strConn & "C:\JWing\Die Master\Die Master\DieMaster.mdb"
    myCon.ConnectionString = strConn
    myCon.Open
    ------------------------------------------------------------------------------------
    this set of coding wrk for my pc not my frenz !

  2. #2
    New Member
    Join Date
    Jul 2002
    Posts
    6

    Talking database connectivity

    hi ,

    may be the file in which the database was created and the database version in the system does not match.

    convert the database file to the correct version

    OR

    the file may be missing from it's locationm.pl. verify that.

    hope this will work
    bye

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2002
    Posts
    9
    yea in my frenz com he cannt find the database as the program and database he did not put in the folder i specified on e connection. is there a codin whereby it will detect e database as lng as the database is place together wif the program in e same folder?b

  4. #4
    Destined Soul
    Guest
    If you're wanting to read a database that's in the same dir as the program, I think this should do it:
    VB Code:
    1. dbName = "DieMaster.mdb"
    2. strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="
    3. strConn = strConn & App.Path & "\" & dbName
    Hope this helps.

    Destined

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