Ver Mensaje Individual
  #7 (permalink)  
Antiguo 04/05/2009, 15:16
QubiKo
 
Fecha de Ingreso: mayo-2009
Mensajes: 5
Antigüedad: 16 años
Puntos: 0
Respuesta: ingresar solo numeros en un campo de texto

Si no me equivoco, la solución es sencilla:

If ((KeyAscii < 48 Or KeyAscii > 57) And (KeyAscii < 45 Or KeyAscii > 45)) Then
If (KeyAscii <> 8) Then KeyAscii = 0
End If

Espero no haber comprendido mal y que esto sirva.