Bill Ross
asked on
Append query from access to SharePoint
Hi,
Using SharePoint and Access 2013
When I run an append query from Access to SharePoint I get the message:
An INSERT INTO query cannot contain a multi-valued field.
Any ideas on how can I handle this append. I need to move data into SharePoint once.
Thanks,
Bill
Using SharePoint and Access 2013
When I run an append query from Access to SharePoint I get the message:
An INSERT INTO query cannot contain a multi-valued field.
Any ideas on how can I handle this append. I need to move data into SharePoint once.
Thanks,
Bill
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I see.
Then, I guess, you will have to use VBA to open two recordsets of DAO.Recordset2 and copy records from the one to the other.
It seems:
https://msdn.microsoft.com/en-us/library/office/ff197737(v=office.15).aspx
that the multivalue fields must be handled by the option of Recordset2 (missing in Recordset) to handle the multivalue field with the ParentRecordset property:
https://msdn.microsoft.com/en-us/library/office/ff196492(v=office.15).aspx
I have no Sharepoint tables to test with but it seems to be the route to follow.
/gustav
Then, I guess, you will have to use VBA to open two recordsets of DAO.Recordset2 and copy records from the one to the other.
It seems:
https://msdn.microsoft.com/en-us/library/office/ff197737(v=office.15).aspx
that the multivalue fields must be handled by the option of Recordset2 (missing in Recordset) to handle the multivalue field with the ParentRecordset property:
https://msdn.microsoft.com/en-us/library/office/ff196492(v=office.15).aspx
I have no Sharepoint tables to test with but it seems to be the route to follow.
/gustav
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Thanks for the feedback.
/gustav
/gustav
ASKER
Solved it myself
ASKER
The multi-value set up in SharePoint matches the look up table/detail table in Access. The SharePoint design mirrors the Access table design. I need a way to append records to the multi-value SharePoint column - not create the tables - as the data comes from multiple identical Access databases with same structure but different data.
Thanks,
Bill