This is driving me nuts.
I have an unbound textbox (txt_SumSize) in my subform that holds the total of a field (Debitage_Size_ Quantity)seen in datasheet view (control source =Sum([Debitage_Size_Q uantity]).
I have an unbound textbox on my form (txt_SizeTotal) that gets the value from the subform footer when the form loads:
This works great. But I need the total to refresh or requery when more data is added to the subform.
Nothing I have tried works. Either nothing happens or I get an error. I have tried putting code on the form, on the subform, on the subform footer textbox after update, on change and also on the main form total textbox after update and on change and nothing works.
I am not committed to using the on load function but it was the only code that worked in trying to get the total from the footer to show up on the main form.
Any help appreciated!
I have an unbound textbox (txt_SumSize) in my subform that holds the total of a field (Debitage_Size_ Quantity)seen in datasheet view (control source =Sum([Debitage_Size_Q uantity]).
I have an unbound textbox on my form (txt_SizeTotal) that gets the value from the subform footer when the form loads:
Code:
Private Sub Form_Load()
Me.txt_SizeTotal = Me!sbfrm_DEBITAGE_Size.Form![txt_SumSize]
End Sub
Nothing I have tried works. Either nothing happens or I get an error. I have tried putting code on the form, on the subform, on the subform footer textbox after update, on change and also on the main form total textbox after update and on change and nothing works.
I am not committed to using the on load function but it was the only code that worked in trying to get the total from the footer to show up on the main form.
Any help appreciated!
Comment