Not sure of what you want. If you want to carry out calculations on a field then:
Function MyStuff(TestData as ....)
''Carry out calculations then
TestData = Result of Calculations
End Function
What this does is the data being calculated is being passed to the function as variable TestData. When the function sees TestData = x it then returns x back to where it came from.
HTH