I have a form with a field that should change (recalculate) based on the values changed in other fields.
I created a new public sub such as:
Public Sub recalculateAll()
Call getEbayFees
Call getTotalCost
Call getLossAmount
Call getWinningBidProfit
Call getWinningBidProfitPercent
Call getEbayFees
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveForm, , acMenuVer70
End Sub
And I was going to call this from every input field that effects all of the totals in the functions listed above, and call it from the change event:
Private Sub Insertion_Charged_Change()
Call recalculateAll
End Sub
I change the value of an amount and I need to close the form, but when I go back it reflects the change.
I've had a similar issue when adding a new record and then display those records in a subform on a form that it goes back to when it closes and but until I do a refresh, which just a macro to close with save, it doesn't show the changes. Are these two situations similar and can I fix them both the same way?
Thanks!
I created a new public sub such as:
Public Sub recalculateAll()
Call getEbayFees
Call getTotalCost
Call getLossAmount
Call getWinningBidProfit
Call getWinningBidProfitPercent
Call getEbayFees
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveForm, , acMenuVer70
End Sub
And I was going to call this from every input field that effects all of the totals in the functions listed above, and call it from the change event:
Private Sub Insertion_Charged_Change()
Call recalculateAll
End Sub
I change the value of an amount and I need to close the form, but when I go back it reflects the change.
I've had a similar issue when adding a new record and then display those records in a subform on a form that it goes back to when it closes and but until I do a refresh, which just a macro to close with save, it doesn't show the changes. Are these two situations similar and can I fix them both the same way?
Thanks!