I have a main form called Member with a subform called Member_Payments Subform linked by the Primary key MembershipNo. The subform shows all payments made by the member currently shown on the Member form. A field called Running_Balance on the Member form needs to show whether a payment has been entered and submitted in the subform. I think a command button to ‘submit’ the payment is the best option and the subform is a tabular layout so a button could be at the end of each record or in the header (with reference to the most recent payment being used in the calculation).
I have some fields for calculation in the Member form to allow for the Running_Balance calculations. E.g. if the amount paid into the subform is less than the Running_Balance there will be a balance > £0.
I am having some difficulties with the coding of this as I haven’t used VBA before, I can see the logic but cannot understand how to make the correct payment be subtracted from subform to the main form.
If anyone can help me I’d be very grateful,
Thanks Viv
I have some fields for calculation in the Member form to allow for the Running_Balance calculations. E.g. if the amount paid into the subform is less than the Running_Balance there will be a balance > £0.
I am having some difficulties with the coding of this as I haven’t used VBA before, I can see the logic but cannot understand how to make the correct payment be subtracted from subform to the main form.
If anyone can help me I’d be very grateful,
Thanks Viv