Results 1 to 2 of 2

Thread: help with formatting text

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,091
    Hi,

    I have a text box which the user will enter numbers into. I then want to format the number to have 3 decimal places so that if the use types in 3.2 it will read as 3.200 or if the user types in 3.2345 it will read as 3.235 when the text box loses focus..

    Any help would be appreciated..

    Dan

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Code:
    Private Sub Text1_LostFocus()
    Text1.Text = Format(Text1.Text, "0.000")
    End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width