I have a nested sub form (Continuous Form).
In the footer of the form I have a simple calculation that adds all of the costs that are listed in the detail section of the form. Everything works Ok. I want to add a button in the footer called that when clicked requeries the form to enable the calculations. My reason for this is if a user adds a record but doesn't move from that record the calculation has been updated.
So far in the button I have a requery function which tells me I have to save the form before it can run. My code is basic so I am having difficulties doing this.
I have tried:
Private Sub Command20_Click()
DoCmd.Save acDefault
[Forms]![AppointmentF]![AppointmentSubF]![ServiceF].Requery
End Sub
I am not sure how to input the what to save section.
Wayne
In the footer of the form I have a simple calculation that adds all of the costs that are listed in the detail section of the form. Everything works Ok. I want to add a button in the footer called that when clicked requeries the form to enable the calculations. My reason for this is if a user adds a record but doesn't move from that record the calculation has been updated.
So far in the button I have a requery function which tells me I have to save the form before it can run. My code is basic so I am having difficulties doing this.
I have tried:
Private Sub Command20_Click()
DoCmd.Save acDefault
[Forms]![AppointmentF]![AppointmentSubF]![ServiceF].Requery
End Sub
I am not sure how to input the what to save section.
Wayne