MS Access 2013 Update Query Syntax Error - SharePoint Linked list update Access table

Corinne

New Member
Joined
Oct 11, 2010
Messages
7
Hello:

I'm using MS Access 2013 & SharePoint 2010. I’m trying to create a table in Access by linking to an existing SharePoint list. I want them to be linked, so that I’m capturing any data changes made and/or new records in the SharePoint list. However, I do not want changes that I make in the MS Access table to be reflected in the SharePoint list.

The trouble is that I'm getting a "syntax error (missing operator) in query expression 'src.Modified > des.Modified". I'm not experienced in MS Access...everything I'm doing, I've learned by web search. Presently, I'm stuck with how to proceed efficiently. Any help would be appreciated!

I've copied the SharePoint list and saved as an MS Access table. Then I created an update query as follows:

UPDATE MSAccessTbl AS des INNER JOIN LinkedSharePointList AS src SET
des.Field1 = src.Field1, des.Field2 = src.Field2
WHERE src.Modified > des.Modified

Then:
INSERT INTO MSAccessTbl
(Field1, Field2)
SELECT src.Field1, src.Field2
FROM LinkedSharePointList AS src
LEFT JOIN MSAccessTbl AS des
WHERE des.ID IS NULL;
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

Forum statistics

Threads
1,215,519
Messages
6,125,299
Members
449,218
Latest member
Excel Master

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top