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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copying data from one table to another table

Status
Not open for further replies.

cctrinh

MIS
Feb 2, 2001
25
US
Hi,

Can some show me how to write the codes to copy the data from one table to another. When I click on a button I want to copy the data from table1 to table2. Please help....

Thank you,
 
I'm not sure if you are wanting to copy records or select records. At any rate, you would want to use an append query that will grab the records from table1 and append them to table2.
Then in your button's click event, use the code

Docmd.OpenQuery "NameOfTheAppendQuery"

Hope this helps, ljprodev@yahoo.com
Professional Development
MS Access Applications
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top