batsheva
May 15th, 2001, 04:09 PM
I would like to format the text of a text box that it should comma separators and have parenthesis when it is a negative number.
e.g. -200000 should be (200,000)
Thanks!
e.g. -200000 should be (200,000)
Thanks!
|
Click to See Complete Forum and Search --> : text boxes batsheva May 15th, 2001, 04:09 PM I would like to format the text of a text box that it should comma separators and have parenthesis when it is a negative number. e.g. -200000 should be (200,000) Thanks! Raptors Fan May 15th, 2001, 04:21 PM Use Format(Text1.Text, "###,###.##;(###,###.##)"). You can add $ before it and 0 like so $#,##0.00 try reading about the function Format to learn more. codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |