Format not giving expected result in text field

I have an event in a popup menu change that looks like this(in part):

taxrate.Text = Format((taxpcnt/100),"##.###%")

where taxrate is a textfield. The weird thing is it is not showing up like the value should be, for instance if the taxpcnt = 8.125 it shows up in taxrate as 8.12 somewhere it loses the last number.

the result of the Format statement is giving the correct value, it just gets lost in the text field.

What am I overlooking here?

TIA,
Fred

is the “%” showing in your textfield?
If not, then is the text field wide enough to show all the characters.

I just tried to duplicate your results, and cannot… unless I make the Textfield too small

yes, it is showing the %.

I am going to search and check to make sure I don’t have a function somewhere else that is re-calculating the percent and then posting to the textfield after my original calculation

You are dividing the taxpcnt by 100 so I assume it is an Integer which implies you’ve lost the last digit somewhere.

yep, had another method that was resetting the text property, and had the wrong format. Changed that and all is well now.

Thanks for you help guys!