There is no obvious reason... so lets look for something that is not obvious.
What is the database? Oracle, Sql Server, Access, MySql, Informix, etc?
What is the datatype of the tempPremium field.
I assume it is numeric - so what are the constraints on it - scale, precision, size, etc - in the database table?
The main observation I can make at this time is that 9999 is four digits, and 10000 is five. So, can this make a difference? It's the only variation that jumps out.
What else...? I'll try to help, but it's tough in this environment.
Woody Z
http://www.learntoprogramnow.com