Hi,
By some reason I don't know this: AfterLostFocus() event is not working automatically , why? it's used to work.
Private Sub Nmordencompracliente_AfterLostFocus()
Dim valor As Integer
If (Me.Nmordencompracliente.Value <> "") Then
valor = BuscarNumeroBl(Me.Nmordencompracliente.Value)
If valor > 0 Then
MsgBox "¡Este número ya existe " + CStr(valor) + " Veces! (O_o)"
End If
End If
End Sub
*This post is locked for comments