Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Moving records from one table to another

Status
Not open for further replies.

badger8

MIS
Aug 3, 2001
34
US
I have two tables. I have a list of accounts that I would like to look for within one table, and any contact from these accounts I would like to move them to my second table.

How would I do this? Need help

Thank you
 
Could you clarify why the normal Append Query doesn't meet you need? mike.stephens@bnpparibas.com
 
I would think the following would work:

INSERT INTO MySecondTable
SELECT * FROM MyFirstTable
WHERE MyFirstTable.MyColumn in ('Value1','Value2','Value3')

If not, please add some more detail... Terry M. Hoey
 
Hi th3856,

The insert into worked. Is there a way after you insert these records into the second table to delete the records from the first table?
 
It would almost be the same query:

DELETE FROM MyFirstTable
WHERE MyFirstTable.MyColumn in ('Value1','Value2','Value3')

Terry M. Hoey
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top