Aug 10 2023 11:32 AM
Hi community!
In a database, I have a linked SharePoint list (ListSP). When updating the value of the SPResp field of the list from SharePoint, I want to update the ACCResp field of an Access table named ListACC in the same database automatically. How can I do this process?
Thank you very much.
Aug 11 2023 05:55 AM
If the two tables are identical, except that one is a linked SharePoint list and the other is a local Access table, the simple solution would be an update query to modify the relevant field(s) in the local Access table.
However, that begs the question: Why are there two tables?
Perhaps a full description of the context would be helpful to understanding how best to advise you.
Aug 11 2023 12:57 PM
Aug 11 2023 01:10 PM
Cool. I'm delighted to hear you're working with Power Apps. I'm sorry to hear that it's based on SharePoint lists, though. To be honest, my experience with PA and SP lists is less than compelling. If you have the option, I'd recommend looking into Dataverse over SharePoint lists for that side of the operation. See my series of YouTube videos on PowerApps for Access Developers for some of my experiences and conclusions. I used SP lists in some early applications and came away less than impressed. Dataverse, on the other hand, is relatively new, and therefore less familiar and less comfortable for Access developers. It does have more upside, though, IMO.
Aug 11 2023 01:18 PM
SolutionTo address the specific requirement, though, we need to consider what it means to be "automatic" here.
"I need to do an Update of the ACCResp field of the Access table when the SPResp field of the list changes automatically."
If I understand correctly, you have a linked SharePoint list in the accdb and you need to run an update query for that linked table and the local table. And you need that to happen whenever a value in the SharePoint list changes. Tough to accomplish perhaps.
I would say a Flow in SharePoint could detect when the values in the SP list change, but that doesn't do any good on the Access side, where the update needs to be completed.
An option in Access might be to put a timer on a form and check the values in the SP list at intervals -- say 60 seconds or 10 minutes or whatever is appropriate -- and fire a function that completes the update if needed. Or you could simply run the update at intervals, again on a timer in a form, anticipating that there may be new values or there may not be.
Aug 12 2023 12:41 AM
Aug 11 2023 01:18 PM
SolutionTo address the specific requirement, though, we need to consider what it means to be "automatic" here.
"I need to do an Update of the ACCResp field of the Access table when the SPResp field of the list changes automatically."
If I understand correctly, you have a linked SharePoint list in the accdb and you need to run an update query for that linked table and the local table. And you need that to happen whenever a value in the SharePoint list changes. Tough to accomplish perhaps.
I would say a Flow in SharePoint could detect when the values in the SP list change, but that doesn't do any good on the Access side, where the update needs to be completed.
An option in Access might be to put a timer on a form and check the values in the SP list at intervals -- say 60 seconds or 10 minutes or whatever is appropriate -- and fire a function that completes the update if needed. Or you could simply run the update at intervals, again on a timer in a form, anticipating that there may be new values or there may not be.