Your question is somewhat ambiguous.
In one sense, it sounds like you want to save a calculated
value in a table. In this case, the stock answer is that
you should not save calculated values (just recalculate as
needed). But, this might be one of the situations where
it's the right thing to do. If it is, then you should use
VBA to calculate the value and set the bound text box.
OTOH, if you only want to display the calculated value
without saving it to the table, then you can use a text box
expression.
It does not sound like you are trying to use VBA to set an
unbound text box to a value that can not be calculated from
other values in the record. This is the situation that
requires a very roundabout approach.