Ver Mensaje Individual
  #6 (permalink)  
Antiguo 12/11/2005, 22:13
Avatar de jc_moty
jc_moty
 
Fecha de Ingreso: septiembre-2005
Ubicación: Usulután, El Salvador
Mensajes: 477
Antigüedad: 18 años, 7 meses
Puntos: 1
Cita:
If Clave.RecordCount = -1 Then ' Si la tabla no tiene registros
Ojo con esto del RecordCount, yo he intentado usarlo y aunque el RecordSet tenga registros la propiedad siempre devuelve -1.
Lo que podes hacer es lo siguiente:
Código:
If Clave.BOF And Clave.EOF Then
    MsgBox "El Usuario no Existe"
Else
    If Clave!Clave = Passwd Then
        MsgBox "Contraseña Correcta"
    Else
        MsgBox "Contraseña Incorrecta"
    End If
End If
Espero te sirva
Saludos

Última edición por jc_moty; 12/11/2005 a las 22:20