Hello,
I'm trying to find a way to update a table that I have with new information. The thing is that the old table is a table that has a field that needs to be manually updated and I don't want to lose that...
What I would like to do is add the new records from the new table into the old one and also delete the ones that are no longer relevant (no longer showing in the new table) but keep the ones that are matching without any changes so that my manually updated field doesn't get affected. Example below:
Old Table:
[TABLE="width: 426"]
<tbody>[TR]
[TD]Field 1
[/TD]
[TD]Field 2
[/TD]
[TD]Field 3 (Manually updated)
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]a
[/TD]
[TD]Yes
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]b
[/TD]
[TD]No
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]c
[/TD]
[TD]No
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD]d
[/TD]
[TD]Yes
[/TD]
[/TR]
[TR]
[TD]5
[/TD]
[TD]e
[/TD]
[TD]No
[/TD]
[/TR]
[TR]
[TD]6
[/TD]
[TD]f
[/TD]
[TD]Yes
[/TD]
[/TR]
[TR]
[TD]7
[/TD]
[TD]g
[/TD]
[TD]No
[/TD]
[/TR]
[TR]
[TD]8
[/TD]
[TD]h
[/TD]
[TD]No
[/TD]
[/TR]
[TR]
[TD]9
[/TD]
[TD]i
[/TD]
[TD]Yes
[/TD]
[/TR]
[TR]
[TD]10
[/TD]
[TD]j
[/TD]
[TD]Yes
[/TD]
[/TR]
</tbody>[/TABLE]
New Table:
[TABLE="width: 185"]
<tbody>[TR]
[TD]Field 1
[/TD]
[TD]Field 2
[/TD]
[/TR]
[TR]
[TD]6
[/TD]
[TD]f
[/TD]
[/TR]
[TR]
[TD]7
[/TD]
[TD]g
[/TD]
[/TR]
[TR]
[TD]8
[/TD]
[TD]h
[/TD]
[/TR]
[TR]
[TD]9
[/TD]
[TD]i
[/TD]
[/TR]
[TR]
[TD]10
[/TD]
[TD]j
[/TD]
[/TR]
[TR]
[TD]11
[/TD]
[TD]k
[/TD]
[/TR]
[TR]
[TD]12
[/TD]
[TD]l
[/TD]
[/TR]
[TR]
[TD]13
[/TD]
[TD]m
[/TD]
[/TR]
</tbody>[/TABLE]
Hoping to update the old table by using the new table into:
[TABLE="width: 426"]
<tbody>[TR]
[TD]Field 1
[/TD]
[TD]Field 2
[/TD]
[TD]Field 3 (Manually updated)[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 426"]
<tbody>[TR]
[TD]6
[/TD]
[TD]f
[/TD]
[TD]Yes
[/TD]
[/TR]
[TR]
[TD]7
[/TD]
[TD]g
[/TD]
[TD]No
[/TD]
[/TR]
[TR]
[TD]8
[/TD]
[TD]h
[/TD]
[TD]No
[/TD]
[/TR]
[TR]
[TD]9
[/TD]
[TD]i
[/TD]
[TD]Yes
[/TD]
[/TR]
[TR]
[TD]10
[/TD]
[TD]j
[/TD]
[TD]Yes
[/TD]
[/TR]
[TR]
[TD]11
[/TD]
[TD]k
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]12
[/TD]
[TD]l
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]13
[/TD]
[TD]m
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Needed result: Records 1-5 in old table are no longer relevant so they get deleted and rows 11-13 in new table are now added to the old table while keeping record 6-10 and their corresponding manual entries (Yes/No) the same without having to do the manual update again
I have tried using an append query (not very familiar with it) to solve my problem but it seems to be giving me the opposite of what I'm looking for.
Thanks to anyone who can help.
Regards,
I'm trying to find a way to update a table that I have with new information. The thing is that the old table is a table that has a field that needs to be manually updated and I don't want to lose that...
What I would like to do is add the new records from the new table into the old one and also delete the ones that are no longer relevant (no longer showing in the new table) but keep the ones that are matching without any changes so that my manually updated field doesn't get affected. Example below:
Old Table:
[TABLE="width: 426"]
<tbody>[TR]
[TD]Field 1
[/TD]
[TD]Field 2
[/TD]
[TD]Field 3 (Manually updated)
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]a
[/TD]
[TD]Yes
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]b
[/TD]
[TD]No
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]c
[/TD]
[TD]No
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD]d
[/TD]
[TD]Yes
[/TD]
[/TR]
[TR]
[TD]5
[/TD]
[TD]e
[/TD]
[TD]No
[/TD]
[/TR]
[TR]
[TD]6
[/TD]
[TD]f
[/TD]
[TD]Yes
[/TD]
[/TR]
[TR]
[TD]7
[/TD]
[TD]g
[/TD]
[TD]No
[/TD]
[/TR]
[TR]
[TD]8
[/TD]
[TD]h
[/TD]
[TD]No
[/TD]
[/TR]
[TR]
[TD]9
[/TD]
[TD]i
[/TD]
[TD]Yes
[/TD]
[/TR]
[TR]
[TD]10
[/TD]
[TD]j
[/TD]
[TD]Yes
[/TD]
[/TR]
</tbody>[/TABLE]
New Table:
[TABLE="width: 185"]
<tbody>[TR]
[TD]Field 1
[/TD]
[TD]Field 2
[/TD]
[/TR]
[TR]
[TD]6
[/TD]
[TD]f
[/TD]
[/TR]
[TR]
[TD]7
[/TD]
[TD]g
[/TD]
[/TR]
[TR]
[TD]8
[/TD]
[TD]h
[/TD]
[/TR]
[TR]
[TD]9
[/TD]
[TD]i
[/TD]
[/TR]
[TR]
[TD]10
[/TD]
[TD]j
[/TD]
[/TR]
[TR]
[TD]11
[/TD]
[TD]k
[/TD]
[/TR]
[TR]
[TD]12
[/TD]
[TD]l
[/TD]
[/TR]
[TR]
[TD]13
[/TD]
[TD]m
[/TD]
[/TR]
</tbody>[/TABLE]
Hoping to update the old table by using the new table into:
[TABLE="width: 426"]
<tbody>[TR]
[TD]Field 1
[/TD]
[TD]Field 2
[/TD]
[TD]Field 3 (Manually updated)[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 426"]
<tbody>[TR]
[TD]6
[/TD]
[TD]f
[/TD]
[TD]Yes
[/TD]
[/TR]
[TR]
[TD]7
[/TD]
[TD]g
[/TD]
[TD]No
[/TD]
[/TR]
[TR]
[TD]8
[/TD]
[TD]h
[/TD]
[TD]No
[/TD]
[/TR]
[TR]
[TD]9
[/TD]
[TD]i
[/TD]
[TD]Yes
[/TD]
[/TR]
[TR]
[TD]10
[/TD]
[TD]j
[/TD]
[TD]Yes
[/TD]
[/TR]
[TR]
[TD]11
[/TD]
[TD]k
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]12
[/TD]
[TD]l
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]13
[/TD]
[TD]m
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Needed result: Records 1-5 in old table are no longer relevant so they get deleted and rows 11-13 in new table are now added to the old table while keeping record 6-10 and their corresponding manual entries (Yes/No) the same without having to do the manual update again
I have tried using an append query (not very familiar with it) to solve my problem but it seems to be giving me the opposite of what I'm looking for.
Thanks to anyone who can help.
Regards,