Ver Mensaje Individual
  #3 (permalink)  
Antiguo 31/03/2012, 14:25
rusco
 
Fecha de Ingreso: septiembre-2009
Mensajes: 26
Antigüedad: 15 años, 6 meses
Puntos: 0
Respuesta: No me funciona el evento SetFocus

Cita:
Iniciado por astrow25 Ver Mensaje
Hola tengo un textbox, que al evento AfterUpdate hace lo siguiente

Private Sub Telefono_AfterUpdate()
If not IsNumeric(Telefono) then
me.Telefono.SetFocus()
End If
End Sub

He probado y no me funciona el setfocus, se va al siguiente control
Hola,

prueba así.

Private Sub Telefono_AfterUpdate()
If not IsNumeric(Me.Telefono) then
me.Telefono=""
me.Telefono.SetFocus
End If
End Sub