Results 1 to 3 of 3

Thread: Connect to DAO database on network

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Posts
    154

    Question Connect to DAO database on network

    Hi,

    I have an Access database (mydatabase.mdb), and a program
    (data.exe) I wrote to manipulate (add, edit, delete records) in it.
    It works great on one computer.

    I want to use it on a network of 10 computers. I want to place
    the database on 1 computer, and have my program (data.exe)
    on the other 9 computers.

    Here's my question...

    Currently I use the following to connect to the database:

    Set db = OpenDatabase(App.Path + "\" + "mydatabase.mdb")


    How would I do it on a network? Somewhere in this forum, I read
    all I have to do is the following:

    Set db = OpenDatabase("\\RemoteComputerName\c\myfolder\mydatabase.mdb")


    Is that all I have to do? Or, do I need to use the Winsock control?


    Thanks in advance,
    Ron

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    You don't need a WinSock control. Just the fully qualified remote path.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Posts
    154
    Hey Hack,

    So, just to clarify...

    If the computer that had the database on it, was named
    "BillyBob", and the path to the actual database file is
    "C:\myfolder\mydatabase.mdb".......then all I need to put is...

    Set db = OpenDatabase("\\BillyBob\c\myfolder\mydatabase.mdb")


    ...and I will be connected to the db on that computer. Correct?


    Thanks,
    Ron

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