I am looking for a way to move monthly data between columns, as I am only required to store information for the past 5 months.
CARRY OVER - Month 1 - Month 2 - Month 3 - Month 4 - Month 5
when I press a button I would like for month 5's information to populate the month 4 column, month 4's information to populate the month 3 column etc. Month 1 should then be added to carry over.
currently I have been able to get some code that will perform this upon only the selected record, however I need to get this working for every record in the db:
I am relatively new to access vba coding, having done a little bit last year where I recieved very useful help from this website. If anyone has any ideas how I would do this I would be greatly appreciative.
CARRY OVER - Month 1 - Month 2 - Month 3 - Month 4 - Month 5
when I press a button I would like for month 5's information to populate the month 4 column, month 4's information to populate the month 3 column etc. Month 1 should then be added to carry over.
currently I have been able to get some code that will perform this upon only the selected record, however I need to get this working for every record in the db:
Code:
Forms![UpdatePaid]![DQSubform].Form![Carry Over] = Forms![UpdatePaid]![DQSubform].Form![Carry Over] + Forms![UpdatePaid]![DQSubform].Form![Month 1]
Forms![UpdatePaid]![DQSubform].Form![Month 1] = Forms![UpdatePaid]![DQSubform].Form![Month 2]
Forms![UpdatePaid]![DQSubform].Form![Month 2] = Forms![UpdatePaid]![DQSubform].Form![Month 3]
Forms![UpdatePaid]![DQSubform].Form![Month 3] = Forms![UpdatePaid]![DQSubform].Form![Month 4]
Forms![UpdatePaid]![DQSubform].Form![Month 4] = "0"
I am relatively new to access vba coding, having done a little bit last year where I recieved very useful help from this website. If anyone has any ideas how I would do this I would be greatly appreciative.