jazminecat
Programmer
Hi all, just a basic question, I hope. I have a db with two tables - I need to find all the records in table A with a matching serial number in table B, use those matching records from table A to populate a repot, dump them into an archive table, delete them from table A, all at the same time. This report will be run monthly, with new records being imported into table A and B all the time - hence the need for the archive showing what was pulled out of table A.
Anyone have any ideas the best way to go about this? I want to automate all of this onto a form, at the click of a button, but at this point, I just need to know the right way to go about it. Do I write an append query to add the records to table C (the archive) and then a delete query to delete the matching records from table A? Or is there a way to do it with one fell swoop?
Thanks for your expertise, as always!
Anyone have any ideas the best way to go about this? I want to automate all of this onto a form, at the click of a button, but at this point, I just need to know the right way to go about it. Do I write an append query to add the records to table C (the archive) and then a delete query to delete the matching records from table A? Or is there a way to do it with one fell swoop?
Thanks for your expertise, as always!