I have a question..... hopefully a simple one. How do you Sum a series of unbound text boxes on a form without manually having to enter each textbox name etc.
Example:
I have a series of text boxes:::
txtTBASS1bonus, txtTBASS2bonus, txtTBASS3bonus... through 25
txtRTF1bonus, txtRTF2bonus, txtRTF3bonus... through 25
txtAHT1bonus, txtAHT2bonus, txtAHT3bonus... through 25
The Sum of all these textboxes = txtPayoutSum
I would imagine the code would be something similar to:
me.txtPayoutSum.value = (Me.txtTBASS1.Value:me.txtTBASS25.Value + Me.txtRTF1.Value:me.txtRTF25.Value + Me.txtAHT1.Value:me.txtAHT25.Value)
This doesn't work. Any help is much appreciated. Thanks.
Example:
I have a series of text boxes:::
txtTBASS1bonus, txtTBASS2bonus, txtTBASS3bonus... through 25
txtRTF1bonus, txtRTF2bonus, txtRTF3bonus... through 25
txtAHT1bonus, txtAHT2bonus, txtAHT3bonus... through 25
The Sum of all these textboxes = txtPayoutSum
I would imagine the code would be something similar to:
me.txtPayoutSum.value = (Me.txtTBASS1.Value:me.txtTBASS25.Value + Me.txtRTF1.Value:me.txtRTF25.Value + Me.txtAHT1.Value:me.txtAHT25.Value)
This doesn't work. Any help is much appreciated. Thanks.