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

remote connetion to Access

Status
Not open for further replies.

RTornberg

Programmer
Jun 13, 2001
4
0
0
US
I can't seem to create a connection to a remote Access DB without mapping the drive. I've tried ADO, DAO and ODBC. Any ideas?
 
DAO (from Access Help):

The TransferDatabase method carries out the TransferDatabase action in Visual Basic. For more information on how the action and its arguments work, see the action topic.

Syntax

DoCmd.TransferDatabase [transfertype], databasetype, databasename[, objecttype], source, destination[, structureonly][, saveloginid]


e.g.:

DoCmd.TransferDatabase acLink, "Microsoft Access", _
"\\eur-fps\teams\FolderMain\DBMain.mdb", acTable, "MyTable", "MyTable"

or
const ServNameStr = "\\eur-fps\teams"

DoCmd.TransferDatabase acLink, "Microsoft Access", _
ServNameStr & "\FolderMain\DBMain.mdb", acTable, "MyTable", "MyTable"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top