Sorry, I should have said the InvoiceTotal textbox is bound.
So what you're saying is that I should create a prcoedure (maybe a runCode macro?) to perform the calculation and for each textbox (rate/expenses/no of days), I should call the afterUpdate(calculate total or whatever) procedure?
Well that was what I was hoping to avoid, but looks like I do have to call something to perform that calculation each time. Fair enough.
Thanks for that.
On the same subject - today I updated the expenses and it displayed on my invoice subform perfectly - but when I selected a command button to go the print preview for the sales invoice - it was still showing the old expenses total. I had to go to Records ---> Refresh from the menu to refresh before displaying the invoice again - is there a way to write some sort of 'pls refresh all data on this form before displaying the report' command?
I have tried inserting:
- Me!InvoiceTotal.Value = [TotalRate] + [TotalExpenses]
with the OnClick event of the button that will display the report, but it still shows the total BEFORE I updated it.