Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to connect Ms access database from server to Client

Status
Not open for further replies.

mastan

Programmer
Aug 27, 2001
1
IN
i have done one client/server application using ms access/vb.
server-machine A-ex.mdb
client-machine b /c/d ..n

how to access ex.mdb to client machine.if i make setup programm then how to the client application detect the server database.
pl tell me the sourcecode immediatly.
 
Put the path of the .mdb in your connection string:

Dim cnConn as adodb.connection

set cnConn = createobject("adodb.connection")

cnconn.connectionstring = "Driver={Microsoft Access Driver (*.mdb)};" & _
"Dbq=\\YourServer\PathToDB;" & _
"Uid=Admin;Pwd=;"
cnconn.open
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top