I have made a Form that is based on a query to update the time that the next payment is due for a caravan storage system. It is based on a query that finds the record I want to change.
In the database there are two relevant fields: LastPay and NextPay which the form displays.
I have put two Text boxes in the form one is for the number of weeks paid and the other to calculate when the payment is next due ie.
If the NextPay field displays the date 02/10/2008 and I enter 12 in the WeeksPaid box the NextDue box displays 25/12/2008 which is correct.
But here is the problem I want to then press an accept button on the form to carry out the following
Set LastPay = NextPay
Set NextPay = NextDue Box
Save the record
I have tried to write a Macro to work off the button but it dosn't seem to work, it seems to think that the file is closed.
Can you tell me how I can achieve what I want?
Kind Regards
Keith
In the database there are two relevant fields: LastPay and NextPay which the form displays.
I have put two Text boxes in the form one is for the number of weeks paid and the other to calculate when the payment is next due ie.
If the NextPay field displays the date 02/10/2008 and I enter 12 in the WeeksPaid box the NextDue box displays 25/12/2008 which is correct.
But here is the problem I want to then press an accept button on the form to carry out the following
Set LastPay = NextPay
Set NextPay = NextDue Box
Save the record
I have tried to write a Macro to work off the button but it dosn't seem to work, it seems to think that the file is closed.
Can you tell me how I can achieve what I want?
Kind Regards
Keith