Question:
What is the proper way to populate a Lookup Field (from a Lookup Field) in a SharePoint List using an Access Update Query?
-------
Infrastructure:
I have two sites with Identical List structures.
List [ServInv] has a lookup field, called 'ProdName' (Single Line of Text) to List [ProdCat]. (It returns some additional fields, like ID, which you'll see referenced below.)
Objective:
Using an Access Database Update Query, update the destination site list (ServInv) fields from the rows of the source site list fields. (Also ServInv, both lists are same name, same structure.), including a SharePoint Lookup Field. (And populate said Lookup field from a Lookup field.)
Problem:
The lookup field 'ProdName' is not populating, and I get many different errors when I try different techniques.
Query Attempts
Query Notes:
1. Link Source.Serv to Dest.ServInv via the SharePoint [ID] field. (Data originated from a template, so IDs stayed the same for all previous data.)
Try:Result
1. Writing Source.ProdName to Dest.ProdName: Error "Data cannot be inserted because there is no matching record"
2. Writing Source.ProdName.Value to Dest.ProdName: Prompted by 'Enter Parameter Value' dialog box for "Source.ProdName.Value"
3. Writing Source.ProdName:ID to Dest.ProdName: Error "Data cannot be inserted because there is no matching record"
4. Writing Source.ProdName:ID.value to Dest.ProdName: Prompted by 'Enter Parameter Value' dialog box for "Source.ProdName:ID.Value"
5. Link ProdCat Table to Source Table via ProdCat.ID -> Source.ProdNameID.value, then Write ProdCat.ProdName to ProdCat.ID: Prompting by the 'Enter Parameter Value' dialog box for "Source.[Fieldname]", where [Fieldname] is the first field in the Update query. **This one is really strange!!
6. Link ProdCat Table to Source.ServInv via ProdCat.ID -> ProdNameID.value, Write ProdCat.ProdName to Dest.ProdName: Same result as #5.
7. Link ProdCat Table to Source.ServInv via ProdCat.ID -> ProdName.value, Write ProdCat.ProdName to Dest.ProdName: Same result as #5.
Steve Clark, MCTS
Easy Bins Roll-off Dumpster Rentals in Northern VA
Specializing in:
Driveway-sized, roll-off dumpster rentals in Fairfax VA |
Dumpster Rentals for Junk Hauling in Springfield VA
Roll-off Rental Dumpsters in Annandale, VA