Results 1 to 4 of 4

Thread: Cannot retrieve records from database in other computer

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2003
    Posts
    57

    Cannot retrieve records from database in other computer

    hi

    i am trying to make a connection to database that are in other computer. But the follow errors occurs: Could not find installable ISAM. btw i am using vb.net

    this are the codes:

    Dim path As String
    mConn = New ADODB.Connection()

    path = "server=172.20.144.4;uid=administrator;pwd=;database=Bio.mdb"
    mConn.Open("Provider=Microsoft.Jet.OLEDB.4.0;Data source=" & path)


    i am not sure whether my codes is correct or not but i koe i cannot connect to that computer. Can any one tell me why?

    thanks alot

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    I don't think you can use an IP address when trying to connect to an MS Access database. You should use a servername and share path, like this

    oConn.Open "Driver={Microsoft Access Driver (*.mdb)};" & _
    "Dbq=\\myServer\myShare\myPath\myDb.mdb;" & _
    "Uid=admin;" & _
    "Pwd="

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    or if you're using OLEDB...

    oConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
    "Data Source=\\myServer\myShare\myPath\myDb.mdb"

  4. #4

    Thread Starter
    Member
    Join Date
    Jul 2003
    Posts
    57

    sorry

    hi

    i am not too familar with access,
    sorry what do u mean by myserver and myshare?

    regards

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