theoldskoolninja
New member
- Local time
- Today, 18:54
- Joined
- Sep 26, 2007
- Messages
- 3
Hi I hope someone can help.
I have a table with records in like the follwowing examples.
Record 1
ID - 1
AccountID - 123
Name - Mr Smith
Address - 38 The Close
PetName - Tilly
Record 2
ID - 2
AccountID - 123
Name - Mr Smith
Address - 38 The Close
PetName - Chloe
Record 3
ID - 3
AccountID - 124
Name - Mr Jones
Address - 49 The Avenue
PetName - Francis
I would like to be able to run an update query that would merge the records with the same Account ID by PetName so that my table would now look like this
Record 1
ID - 1
AccountID - 123
Name - Mr Smith
Address - 38 The Close
PetName - Tilly & Chloe
Record 3
ID - 3
AccountID - 124
Name - Mr Jones
Address - 49 The Avenue
PetName - Francis
So record 2 would have been removed but the Pet that belongs merged with an & into record 1.
It's had me puzzled me for some time.
Thanks to any replies in advance.
theoldskoolninja
I have a table with records in like the follwowing examples.
Record 1
ID - 1
AccountID - 123
Name - Mr Smith
Address - 38 The Close
PetName - Tilly
Record 2
ID - 2
AccountID - 123
Name - Mr Smith
Address - 38 The Close
PetName - Chloe
Record 3
ID - 3
AccountID - 124
Name - Mr Jones
Address - 49 The Avenue
PetName - Francis
I would like to be able to run an update query that would merge the records with the same Account ID by PetName so that my table would now look like this
Record 1
ID - 1
AccountID - 123
Name - Mr Smith
Address - 38 The Close
PetName - Tilly & Chloe
Record 3
ID - 3
AccountID - 124
Name - Mr Jones
Address - 49 The Avenue
PetName - Francis
So record 2 would have been removed but the Pet that belongs merged with an & into record 1.
It's had me puzzled me for some time.
Thanks to any replies in advance.
theoldskoolninja