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

Access ODBC Links

Status
Not open for further replies.

Dodge

IS-IT--Management
Jun 14, 2001
25
US
HELP!! I want Access to update all of the linked tables everytime I start it. Can anyone help??

Thanks
 
DAO:
(refreshlink)

if your database of linked table is password protected you need the pssw - password:

Sub intTbl(vLinkedTableName, vDatabasePath, pssw)
On Error Resume Next
Dim db As Database
Dim tdf As TableDef
Set db = CurrentDb
Set tdf = db.TableDefs(vLinkedTableName)
tdf.Connect = ";database=" & vDatabasePath & ";pwd=" & pssw
tdf.RefreshLink
End Sub

i hope this subrutine works
ide
:cool:
 
Hi!

See at thread705-96231
Maybe therein you would find answer to your question!

Aivars
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top