copying a record to another table

N

Nathan

I have 2 tables that have the same structure within the
same db. What is the best way to copy an entire record
from one to the other using code?

Thanks

Nathan
 
J

John Vinson

I have 2 tables that have the same structure within the
same db. What is the best way to copy an entire record
from one to the other using code?

Thanks

Nathan

Execute an Append query using the querydef object's Execute method.
 
M

Marshall Barton

Nathan said:
I have 2 tables that have the same structure within the
same db. What is the best way to copy an entire record
from one to the other using code?


First you have to specify how you're going to identify the
record to be copied. Then you can run an Append (SELECT
INTO) query to to select and copy the record.
 

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