Auto refresh Sharepoint-linked Tables in Access 2010?

vuyy1182 picture vuyy1182 · May 2, 2014 · Viewed 9.8k times · Source

I have two tables linked with sharepoint lists. And I have a form in access db, each time when the form loads the table which is linked to sharepoint list should refresh automatically.

Is there ant way to do this in vba code?
I'm using

 Application.DoCmd.TransferSharePointList acLinkSharePointList

Answer

MP24 picture MP24 · May 8, 2014

Use CurrentDb.TableDefs("TableName").RefreshLink (replace TableName with your actual table name).