Results 1 to 3 of 3

Thread: Connection to Remote MDB

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2004
    Posts
    3

    Connection to Remote MDB

    Hi all. I am trying to connect to a remote mdb database ( on the internet http:// ) via ADO but cant do it.
    I tried nearly 100000 codes but none of them worked (
    i read the conneciton string at this site http://www.able-consulting.com/ado_conn.htm
    but again nothing happened
    Can some one write here a small exampla please. I Can do everything on a local database but can not connect to a remote mdb (((
    I really need help
    For example i used this code (copied from this forum)
    Set adoCon = Server.CreateObject("ADODB.Connection")
    Set rsAddNewRecord = Server.CreateObject("ADODB.Recordset")
    strCon = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("../dbroot/Names.mdb")
    adoCon.Open strCon

    This time it said Server Variable nor defined.
    Shorlty I tried everything . Someone please Help
    Also i tried an other code
    Dim rs As New ADODB.Recordset
    Dim cn As New ADODB.Connection
    cn.Open "Provider=MS Remote;Data Source=thyvadb.mdb;" & _
    "Remote Server=http://www.tlkclan.com/dokunmatufan/"
    rs.Open "SELECT * FROM uye", cn
    This time it said on this pðart : rs.open "select * fron uye" , cn
    Object module not found
    I also found many about remote mdb on early posts but couldnt do anything

    Thanks very much for the hlep
    Last edited by henre; Apr 9th, 2004 at 11:07 AM.

  2. #2

    Thread Starter
    New Member
    Join Date
    Apr 2004
    Posts
    3
    Noone has an idea ?

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    The code exists, but it just doesn't work!!

    http://www.vbforums.com/showthread.p...hreadid=265351

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