How do I copy a record from one table to another?

NYcowgirl

New Member
Joined
Dec 6, 2005
Messages
31
I am using MS Access 2007. How do I copy a record from one table to another within the same database?
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Code:
INSERT INTO 
  Table_2 
( 
  col_1, 
  col_2, 
  col_3 
)
SELECT 
  Table_1.col_1, 
  Table_1.col_2, 
  Table_1.col_3
FROM 
  Table_1
WHERE 
(
  (
    Table1.id = 1
  )
)

of course change the id to whatever the id is of the row you are copying
 
Upvote 0
I don't understand. I need a more simple answer. I need to be able to copy and paste a record like I could in MS Access 97.
 
Upvote 0
I don't have 2007; I have 2003, but I guess it should be similar

open the table you want to copy from and the table you want to copy to

going down the left side of both tables is a light blue or light gray column
in access 2003 there is a little pencil in this column when you edit a row

so on the table you want to copy from, right mouse click in that blue/gray column on the row that you want to copy

a little pop up menu pops up
on the pop up menu it says New, Delete, Cut, Copy, Paste
select Copy

then go to the table you want to copy to
right mouse click on blue/gray on the last row of that table, its the row where you normally type in your new record, the one with the * next to it

so you right mouse click on the * and the pop up menu pops up, then you select Paste

and that should do it
assuming the columns in both tables are the same type and in the same order
 
Last edited:
Upvote 0
Carin

Why do you want to do this in the first place?

Why replicate data?:)
 
Upvote 0
JAMES: It does work for copying to the same table, but not to a different table.

NORIE: I need to be able to move data between tables seemlessly.
 
Upvote 0
Carin

I'll ask again, why?

If you, as it appears, tables with identical structure then that suggests that the structure of your database isn't normalized.

If you do have a normalized database it's far easier to work with and maintain.:)
 
Upvote 0
what do you mean by "normalized"?

I have two tables - one for current employees and one for terminated employees. I need to move records between the two tables.
 
Upvote 0

Forum statistics

Threads
1,214,913
Messages
6,122,207
Members
449,074
Latest member
cancansova

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