Results 1 to 3 of 3

Thread: [RESOLVED] Help with this conditional statement

Threaded View

  1. #1

    Thread Starter
    Junior Member DanielT's Avatar
    Join Date
    Apr 2011
    Location
    Philippines
    Posts
    16

    Resolved [RESOLVED] Help with this conditional statement

    Hello, Help! Got stocked in this...


    The textbox must only accepts number so i write this code

    Private Sub cmdOK_Change()
    If Not IsNumeric(txtnum.Text) Then
    MsgBox ("Input a valid number.")
    End If
    End Sub

    _______________________________________________________

    But the problem is how could I make the txtnum only accepts
    10 digit number's and it will check whether it is number or not.
    If it is less than 10 then it will not be accepted.

    Let's try putting the code only in the cmdOK


    I hope you understand and sorry for my bad english...
    Thanks!!!
    Last edited by DanielT; May 16th, 2011 at 05:33 AM.

Tags for this Thread

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