In the absence of another reply, my suggestion is that the problem is due to the fact that a text box contains text and you are trying to use it like a number.