con visual basic 6 uf con ado.... eso de acer que busque en la base de datos la tabla de usuarios y que verifique la contraseña en la tabla .... nose... i need help necesito ayudaa.
Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.
Mostrar Mensajes Menú
Private Sub Command1_Click()
On Error Resume Next
Direccion = "y:\cyber.mdb"
Set BaseDatos = OpenDatabase(Direccion)
Set RsUsuarios = BaseDatos.OpenRecordset("Select * From Usuarios")
With RsUsuarios
.FindFirst "Usuario ='" & Text1.Text & "'"
If .NoMatch Then
MsgBox ("Usuario no registrado"), vbInformation
Text1.Text = ""
Text2.Text = ""
Text1.SetFocus
Else
If Text2.Text Like RsUsuarios(2) Then
Usuario = Text1.Text
autentifica.lblusuario.Caption = Text1.Text
'FrmAgenda.CS.Caption = "Cerrar Sesión de " & UCase(Text1.Text)
autentifica.Show
Else
MsgBox ("Password incorrecto"), vbInformation
Text2.Text = ""
Text2.SetFocus
End If
End If
End With
End Sub
Private Sub Command2_Click()
End
End Sub
Private Sub Command3_Click()
Text1.Text = ""
Text2.Text = ""
Text1.SetFocus
End Sub
Private Sub Form_Load()
End Sub
Private Sub text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
SendKeys "{tab}"
KeyAscii = 0
End If
End Sub
Private Sub text2_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
SendKeys "{tab}"
KeyAscii = 0
End If
End Sub