Vladimir Potapov
Vladimir Potapov

Reputation: 2437

how to copy data from one table to another table in Access

i need to data from one table to another table in Access,i Have table1 with 10rows i need to copy only ProductId,ProductCat to Table2 with ProductId,ProductCat

Upvotes: 0

Views: 18614

Answers (2)

t3chb0t
t3chb0t

Reputation: 18646

Luckily the names for the columns are optional so you can also let Access copy every column without naming them explicitly:

insert into [TargetTable] select [SourceTable].* from [SourceTable];

INSERT INTO statement (Microsoft Access SQL)

Upvotes: 0

Jacob Raccuia
Jacob Raccuia

Reputation: 1686

You can do SQL

this is off the top of my head, so hopefully it works!

INSERT INTO Table2 (ProductId, ProductCat) SELECT Table1.ID, Table1.Field1 FROM Table1;

Upvotes: 2

Related Questions