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!

Updating Linked Tables

Status
Not open for further replies.

emeryp

Programmer
Feb 2, 2003
25
US
Hi Everyone,
Does anyone know how to automatically update linked tables from VB 6.0? I have manually used the linked table manager but would like to do it within an application.
Emery
 
Hello CClint,
My tables are already linked in Access and I use the object code for the ActiveX component rather than building it from scratch. For instance:

If (OldVar <> Environment) Then
If Not (Environment = &quot;Search&quot;) Then
If Not (Environment = &quot;SpecTbl&quot;) Then
StrSQL = &quot;Q_Emed_Docs&quot;
Else
StrSQL = &quot;Q_Dept_lkup&quot;
End If
FrmDocTbl.AdoDocTbl.RecordSource = StrSQL
FrmDocTbl.AdoDocTbl.Refresh
End If
End If

Knowing this, how can I update the linked tables in Access?
 
Read the code carefully under the link I posted. There are two sections...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top