I am using a DB to, among other things, calculate the monthly salary of my service users. Obviously, I have to do it every moth. Most of the data from the previous month will be the same in the next month, except date. Even if some of it is different, having the previous data on sight helps calculate the new salaries.
Every month I have to select all records with the month date (say 07/2015) I want to copy and (1) copy paste the records into the salaries table, and (2) search and replace the new records' dates. For example, records with 07/2015 with say 08/2015 (I have to replace downwards to ensure I don't change the record of the month I need to keep).
It can't be that difficult, but I have tried append and update queries to make this automatically (say by clicking a button) but so far no luck.
Is there a way to do this, better if simple, but can use VBA code if necessary.
Any ideas?
Every month I have to select all records with the month date (say 07/2015) I want to copy and (1) copy paste the records into the salaries table, and (2) search and replace the new records' dates. For example, records with 07/2015 with say 08/2015 (I have to replace downwards to ensure I don't change the record of the month I need to keep).
It can't be that difficult, but I have tried append and update queries to make this automatically (say by clicking a button) but so far no luck.
Is there a way to do this, better if simple, but can use VBA code if necessary.
Any ideas?