Hi Sue,
I'm not sure who told you that you posted to the wrong group, but you
didn't. In any case, I'll help you now!
You would have to do this with client-side JavaScript in your page. It will
be a bit tricky, however. It's a simple enough matter to change the value of
a text box, but the real question is WHEN? You can't change it while the
user is typing ("onchange" event handler). You can change it when the text
box loses focus ("onblur"), which means that the user has clicked or tabbed
outside the text box. However, if the user submits the form while the text
box is in focus, the value will change, but the user will not see it. Of
course, that's a minor point. You could do it in the "onsubmit" event
handler for the form, but again, the user will never see it, while, if they
use the "onblur" of the text box, they might, as long as they haven't
submitted the form. So, I'll go for "onblur".
First, you have to create a function that changes the value. Example:
<script type="text/javascript"><!--
function updateBox(box)
{
box.value = "$" + box.value;
}
// --></script>
<input type="text" name="T1" size="20" onblur="updateBox(this)">
Of course, it gets a bit more complicated than that. For example, if you
want to insert commas, you have to do some rather tricky work. First, you
have to make sure that the value typed in is a number. Then you have to
count the digits, and concatenate strings together to form the new formatted
number.
If you really want something decent, I would Google JavaScripts for
formatting numbers. But that is basically the way it works.
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.