Format a txt box.

  • Thread starter Thread starter JT
  • Start date Start date
J

JT

Users enter info in a text box; which is later displayed
in a second text box. One of the text boxes is for
amounts.

Currently, if they enter 10, that is how it is displayed
in the second text box. Is there an easy way to ensure
that amounts are always displayed with 2 decimal points in
the second text box (10.00)?

Thanks for the help
 
if hte text boxes are not linked and you are programming the value into the
second one then you can

val1 = textbox1.text
val2 = format(val1,"$0.00")
textbox2.text = val2
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top