Merge two records into one by changing the Id value

Hi all,

I am struggling with a concept and hoping for some guidance.

I have a Customers table with a CustomersId Key column and I have an Orders table that includes the CustomersId and I want the user to be able to select a โ€œMerge this Customer withโ€ and select a โ€œInto this Customerโ€ and have the app update the CustomersId in the Orders table for the rows with โ€œMerge this Customerโ€ with the CustomersId from the โ€œInto this Customerโ€.
Additionally would like the Customer in the Customers table to be deleted.

I imagine the app user to be able to do this through a form.
The sequence being:-
Select a customer from โ€œMerge this customerโ€ via a dropdown list.
Select a โ€œInto this Customerโ€ via drop down list.
Then a Save or something to set it into motion.

Appreciate any advice.

Many thanks
Simon

0 4 172
4 REPLIES 4

I understand you have a customers table and then an orders sub-table. Just so Iโ€™m clear are you:

1 = Trying to merge 2 customer records
2 = Moving order records from one customer to another
3 = Both of the above

Or am I totally wrong altogether

Simon@1minManager.com

Hi Simon

Option 3 thanks.
Although in order of preference
3.
2.

1 by itself is not an option.
I use google sheets.
Thanks

Iโ€™m just wondering if someone might have some idea on how I might go about this task.
I apologise if it is in the wrong section.
Thank you
Simon

Me too!

Top Labels in this Space