Vb Validation

Text validation no numeric values only allowed

Page 1 of 1

1 Replies - 970 Views - Last Post: 30 September 2008 - 05:06 AM Rate Topic: -----

#1 iceprincess   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 19-September 08

Vb Validation

Post icon  Posted 30 September 2008 - 04:31 AM

 Private Sub txtpin_compadd_Validate(Cancel As Boolean)
If isalphabetic(txtpin_compadd.Text) Then
MsgBox ("Please type only numbers in this field")
End If
End Sub

Is This A Good Question/Topic? 0
  • +

Replies To: Vb Validation

#2 akhileshbc   User is offline

  • D.I.C Head
  • member icon

Reputation: 9
  • View blog
  • Posts: 179
  • Joined: 27-September 08

Re: Vb Validation

Posted 30 September 2008 - 05:06 AM

After msgbox, write:
cancel=true
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1