Insert Rows from One Table To another

S

Squik27

I have two tables and one of them is a temp_table
Is there a way to insert certain rows from the original table to the
temp_table without using SELECT INTO statement?

the problem with select into is that I have to guarantee that temptable
doesn't exist; if I try to DROP temptable I have to guarantee that it exists
and also SELECT INTO won't give default values.

I already did this in two steps.
I openrecordset with the original table and looped through it to copy its
values into the temptable. I'd like to do it in one swap.

thank you
 
T

Tom van Stiphout

On Tue, 9 Jun 2009 16:49:01 -0700, Squik27

Sure. You can use an Append query, which uses the INSERT INTO
statement.

-Tom.
Microsoft Access MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top