No, the tables are linked at all. Just two different tables. I just want to be able to append the data from one to the other with the click of a button. SQL is fine. I'm just not sure how.
Here is one I just wrote yesterday. Takes info from a tmpIMPORT table to my OutFileLog table. I qualify what I want to import (WHERE statement) and update the reportdate field to today.
Code:
INSERT INTO OutFileLog ( AccountNumber, Runtime, [Avg], ReportDate )
SELECT tmpImport.AccountNumber, tmpImport.Runtime, tmpImport.Avg, Date() AS ReportDate
FROM tmpImport
WHERE (((tmpImport.Runtime)>0) AND ((tmpImport.Avg)>0));
Easiest way I've found to do this, is just write a query in Design View to give you the data you want. Then change the query type to APPEND QUERY. At that point Access will ask for the table to append to and will show in design view what fields to append each
Yeah, I would normally do that as well, but it is a front end/back end setup and the front end people are out in the field and it runs real slow, so I need them to update before heading out.