Hi All,
To refresh the link of an Access Table to a specific table/view in SQL server, how would I do that?
tdf.Connect = "ODBC;Driver={SQL SERVER};Server=xx.xxx.xx.xxx;Database= Reports;Trusted_Connection=no;UID=user;PWD=xxxxxx"
do i give the the reference to the remote sql server table name in the above line or not necessary?
The above code is not refreshing and connection fails.
But If Err<> 0 then returns 0 and it fails
TIA
To refresh the link of an Access Table to a specific table/view in SQL server, how would I do that?
tdf.Connect = "ODBC;Driver={SQL SERVER};Server=xx.xxx.xx.xxx;Database= Reports;Trusted_Connection=no;UID=user;PWD=xxxxxx"
do i give the the reference to the remote sql server table name in the above line or not necessary?
The above code is not refreshing and connection fails.
Code:
.......
Err = 0
On Error Resume Next
scurrent = tdf.Name
tdf.RefreshLink
If Err<> 0 then
RefreshLinks = False
Exit Function
End If
........
But If Err<> 0 then returns 0 and it fails
TIA
Last edited: