Results 1 to 2 of 2

Thread: Text Box???

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2001
    Location
    Maine, USA
    Posts
    5

    Question

    How do i limit the entrees of a textbox to just numbers and a decimal piont ????

  2. #2
    Guest
    Try this:


    Code:
    Private Sub Text1_KeyPress(KeyAscii As Integer)
        If KeyAscii = Asc(".") Or KeyAscii = vbKeyBack Then Exit Sub
        If Not (IsNumeric(Chr(KeyAscii))) Then KeyAscii = 0
    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