How to append records to a table that already has those records...

Triedtwice

New Member
Joined
Feb 17, 2014
Messages
31
I can't seem to make an Append Query do what I want...any help will be appreciated!

I need to append records to a table called "tbl_6A_POP" from a table called "tbl_Media_Code". tbl_Media_Code has 7 records ("1000" thu "6000" plus "6500" in a field called "Media_Code"). tbl_6A_POP already has a field called "Media_Code" that has several hundred entries...an excerpt from tbl_6A_POP looks like this:

[TABLE="width: 350"]
<tbody>[TR]
[TD]MC_PK[/TD]
[TD]TTLM_No_PK[/TD]
[TD]Media_Code[/TD]
[TD] Rec_No[/TD]
[/TR]
[TR]
[TD]335[/TD]
[TD]242[/TD]
[TD]3000[/TD]
[TD]19-39-5[/TD]
[/TR]
[TR]
[TD]336[/TD]
[TD]242[/TD]
[TD]3000[/TD]
[TD]749-9-1[/TD]
[/TR]
[TR]
[TD]337[/TD]
[TD]242[/TD]
[TD]4000[/TD]
[TD]56-55-378[/TD]
[/TR]
[TR]
[TD]338[/TD]
[TD]242[/TD]
[TD]4000[/TD]
[TD]50-3-8[/TD]
[/TR]
[TR]
[TD]339[/TD]
[TD]242[/TD]
[TD]4000[/TD]
[TD]20-9-2[/TD]
[/TR]
[TR]
[TD]340[/TD]
[TD]242[/TD]
[TD]4000[/TD]
[TD]53-704-3[/TD]
[/TR]
[TR]
[TD]341[/TD]
[TD]242[/TD]
[TD]4000[/TD]
[TD]13-9-5[/TD]
[/TR]
[TR]
[TD]343[/TD]
[TD]244[/TD]
[TD]5000[/TD]
[TD]1479-73-001[/TD]
[/TR]
[TR]
[TD]344[/TD]
[TD]244[/TD]
[TD]5000[/TD]
[TD]79-1-634[/TD]
[/TR]
[TR]
[TD]348[/TD]
[TD]247[/TD]
[TD]6000[/TD]
[TD]NA_None[/TD]
[/TR]
[TR]
[TD]349[/TD]
[TD]248[/TD]
[TD]6000[/TD]
[TD]NA_None[/TD]
[/TR]
[TR]
[TD]350[/TD]
[TD]249[/TD]
[TD]6000[/TD]
[TD]NA_None[/TD]
[/TR]
</tbody>[/TABLE]

As you can see, there are multiple records for a given TTLM_No_PK, but not every Media_Code is recorded for each TTLM_No_PK. I need to append tbl_6A_POP to have each of the 7 records from tbl_Media_Code for each TTLM_No_PK in tbl_6A_POP. Even as I'm typing this, I realize I'm probably not making any sense...but if you might have a suggestion for getting the missing "Media_Code" records into the tbl_6A_POP table WITHOUT deleting the existing Media_Code records in tbl_6A_POP, I'll be a happy camper!

Thanks!
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.

Forum statistics

Threads
1,223,234
Messages
6,170,891
Members
452,366
Latest member
TePunaBloke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top