Access freezes when you open a linked table to a SharePoint list
Symptoms
In a Microsoft Access desktop database, when you try to open a table that's linked to a SharePoint list, Access stops responding.
Cause
The issue occurs when the user who tries to open the existing linked table in Access doesn't have locally stored credentials for the SharePoint site that contains the list. A stored credential may be either a credential in Windows Credential Manager or a persistent cookie in Internet Explorer.
Resolution
To work around this issue, use one of the following methods.
Method 1: Add the EnableLegacyListAuth registry entry
Note For Access 2016, you must have Click-to-Run version 1804 (build 9226.2114) or MSI version (build 16.0.4690.1000) or a later version installed to use this method. To add the EnableLegacyListAuth registry entry, follow these steps:
Open Registry Editor, and then locate and select the following registry subkey:
For 32-bit Office on 32-bit Windows or 64-bit Office on 64-bit Windows
- For Access 2013
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\15.0\List
- For Access 2016
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\16.0\List
For 32-bit Office on 64-bit Windows
For Access 2013
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\15.0\List
For Access 2016
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\16.0\List
On the Edit menu, point to New, and then click DWORD Value.
Type EnableLegacyListAuth, and then press Enter.
Right-click EnableLegacyListAuth, and then click Modify.
In the Value data box, type 1, and then click OK.
Locate the following registry key:
For Access 2013
HKCU\SOFTWARE\Microsoft\Office\15.0\Common\Identity
For Access 2016
HKCU\SOFTWARE\Microsoft\Office\16.0\Common\Identity
Make sure that the value of EnableADAL is 0.
Exit Registry Editor.
Method 2: Refresh the list
To refresh the list, follow these steps:
- Open Windows Task Manager, select Microsoft Access, and then click End task.
- Reopen the database.
- Right-click the linked table in Access, and then select More Options > Refresh List.
- Log on by using your credentials.
Method 3: Programmatically relink the list
To relink the list, follow these steps:
- Open Windows Task Manager, select Microsoft Access, and then click End task.
- Reopen the database, and create a new module.
- In VBA code, use the RefreshLink method of the TableDefs collection for the linked tables:
Public Function TableRelinkSample()
CurrentDb.TableDefs("<TableName>").RefreshLink
End Function
Note If you have multiple linked SharePoint lists, you have to call RefreshLink only one time for any one of the tables.
Call the TableRelinkSample() function from the AutoExec macro or other startup code in the database.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for