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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DB Server Conectivity

Status
Not open for further replies.

shanmugham

Programmer
Jun 19, 2001
71
0
0
IN
access97
vb6
Windows XP

i need to write a very small program updating a database
which is located on another machine on a local area network and i have no clue where to start this., how can 2 pcs update the same database at the same time

this is how i used to connect to mdb on my own pc

cmk = "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=" & App.Path & "\fileman.mdb"
Set con = New ADODB.Connection
With con
.ConnectionString = cmk
.Open
End With

is there a quick fix, say if the network PC is called SERVER,

thanks!

shan
 
this'll do it
Code:
dim strPathToMDB as string

strPath = "\\server\sharedfolder\fileman.mdb"
'cmk = "Provider=Microsoft.Jet.OLEDB.3.51;'Persist Security Info=False;Data Source=" & 'App.Path & "\fileman.mdb"

cmk = "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=" & strPathToMDB

Set con = New ADODB.Connection
With con
.ConnectionString = cmk
.Open
End With

Take Care

Matt
If at first you don't succeed, skydiving is not for you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top