Using SharePoint 2013 with Excel and Access

  • 8/15/2013

Working offline

In the previous section, you moved data from an Access desktop database to a SharePoint site, and you created linked tables pointing to a SharePoint list where the list items can be viewed and updated using Access. In these tables, the data is stored outside Access. However, you might still like to access the data in a disconnected environment. When using Access 2007, Access 2010, or Access 2013, you are able to cache SharePoint list data locally in an offline mode. The data that is held locally is not independent of the data in the SharePoint list. You may synchronize changes back to the SharePoint site any time that you want.

To switch from working online to offline, on the External Data tab, click Work Offline—the first command in the Web Linked Lists group. The command changes to Work Online and the previously inactive Synchronize and Discard Changes commands are enabled. All data is cached within the desktop database, and links to the SharePoint lists are cut temporarily. However, Access behaves much as it did online. The only indication that it is offline is the Access status bar at the bottom of the Access window, which reads OFFLINE WITH SHAREPOINT.

In Access, when you are online with a SharePoint website and you modify data within a row in a table, moving out of the row causes Access to synchronize changes. However, when you are working offline, a dimmed pencil icon in the first column of the row that you have amended indicates that you have made changes to the row and synchronization has not occurred.

In this exercise, you will explore synchronizing data with a table linked to a SharePoint list when working offline. This exercise uses the linked tables that were created during the move operation in the previous exercise. You can use your own tables that are linked to a SharePoint list, if you want.

  1. Under the Supporting Objects group, click the double down arrow, and then right-click Opportunities. Select More Options, and then click Open Default View to open the Opportunities list in browser, so that you can verify changes to the list later in the exercise.

  2. Switch back to Access. On the Access ribbon, click the External Data tab, and in the Web Linked Lists group, click Work Offline.

  3. Under the Supporting Objects group, double-click Opportunities to display the contents of the table in Datasheet view.

  4. Click the cell in the first row under the Title column, and then type Bianca Corner Unit. Click a cell in the second row.

  5. Switch back to the browser. Click Refresh, and then verify that the first row has not been modified.

  6. In the browser, click the cell in the first row under Title, type Woodland Bench, and then click a cell in the second row.

  7. Switch back to Access. On the External Data tab, in the Web Linked Lists group, click Synchronize to force Access to temporarily connect to the SharePoint list to synchronize changes.

    httpatomoreillycomsourcemspimages1758229.jpg
  8. In the Resolve Conflicts dialog box, click Discard My Changes.

  9. Under Supporting Objects, double-click Opportunities to open the table in Datasheet view, and verify that the Title column of the first row contains the text Woodland Bench.

  10. In the Datasheet view of the Opportunities table, click the cell in the first row under the Title column and type Bianca Corner Unit. Click a cell in the second row.

  11. On the External Data tab, in the Web Linked Lists group, click Work Online.

  12. Switch back to the browser. Click Refresh, and then verify that the first row contains the text Bianca Corner Unit.

  13. On the ribbon, on the List tab, in the Manage Views group, click Create Column.

  14. In the Column name box, type Advertisement and select the Yes/No option. Click OK.

  15. Switch back to Access. Under Supporting Objects, right-click Opportunities, click More options, and then click Refresh List.

  16. Open the Opportunities table, if necessary, and check that the Advertisement column is visible.