You'll have to write something. Hows about adding 10 to the number. Then use the Right function to change the right digit to a zero. I think that would work no? You'll have to convert to string and then back to numeric again but it should work just fine I'd think. I'm not writing it for you but I'll try and help if I can. Here's the docs on Right:<BR><BR>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/vsfctRight.asp<BR><BR>Other functions you'll need should be available there too. Happy coding.