G
Guest
I'm trying to refresh the links to a secured database from an unsecured
database - the connect seems ok but the refreshlinks fails with a '3219
Invalid operation' message. The code to refresh is:
tdf.Connect = ";DATABASE=" & StrPath & ";UID=eTimeIndo;PWD=XcnsDio79p"
tdf.SourceTableName = StrTable
On Error Resume Next
DoCmd.DeleteObject acTable, StrTable
db.TableDefs.Append tdf
On Error GoTo LinkErr
tdf.RefreshLink
What am I doing wrong?
database - the connect seems ok but the refreshlinks fails with a '3219
Invalid operation' message. The code to refresh is:
tdf.Connect = ";DATABASE=" & StrPath & ";UID=eTimeIndo;PWD=XcnsDio79p"
tdf.SourceTableName = StrTable
On Error Resume Next
DoCmd.DeleteObject acTable, StrTable
db.TableDefs.Append tdf
On Error GoTo LinkErr
tdf.RefreshLink
What am I doing wrong?