Está en la página 1de 3

INGRESO DE USUARIO

Dim us, con As String


us = Text1.Text
Data1.Recordset.FindFirst ("Usuario = '" & us & "'")
If Data1.Recordset.NoMatch Then
x = MsgBox("Usuario Incorrecto", 0, "Banco De La Republica")
Text1.Text = ""
Text1.SetFocus
Else
x = MsgBox("Usuario Correcto", 0, "Banco De La Republica")
x = MsgBox("Ahora Ingrese Su Contrasea", 0, "Banco De La Republica")
Text1.Text = ""
Text1.SetFocus
Form12.Show
Form1.Hide
End If
End
INGRESO DE CONTRASEA
Dim con As String
con = Text1.Text
Data1.Recordset.FindFirst ("Contrasea = '" & con & "'")
If Data1.Recordset.NoMatch Then
x = MsgBox("Contrasea Incorrecta", 0, "Banco De La Republica")
Text1.Text = ""
Text1.SetFocus
Else
x = MsgBox("Contrasea Correcta", 0, "Banco De La Republica")
x = MsgBox("Bienvenido Al Banco De La Republica", 0, "Banco De La Republica")
Text1.Text = ""
Text1.SetFocus
Form2.Show
Form12.Hide
End If
End
MENUS COLGANTES:
CONSULTAR CUENTA:
Form8.Show
Form2.Hide
CONSULTAR CUENTA POR NOMBRE:
Form9.Show
Form2.Hide
CONSULTAR CUENTA POR SALDO
Form10.Show
Form2.Hide
CREDITOS:
x = MsgBox("Hecho por Abner Toms", 0, "Mantenimiento")
CUENTAS:
Form3.Show
Form2.Hide
DEPOSITO A CUENTA:
Form6.Show
Form2.Hide

ELIMINAR:
Form4.Show
Form2.Hide
MODIFICAR:
Form5.Show
Form2.Hide
RETIRO A CUENTA:
Form7.Show
Form2.Hide
SALIDA:
End
VER TABLA:
Form11.Show
Form2.Hide
INGRESO DE CUENTAS
Dim cue, nom, dire, tel, sal As String
cue = Text1.Text
Data1.Recordset.FindFirst ("Cuenta ='" & cue & "'")
If Data1.Recordset.NoMatch Then
x = MsgBox("Nmero De Cuenta Incorrecto", 0, "Banco De La Republica")
Text1.Text = ""
Text1.SetFocus
Else
x = MsgBox("Numero De Cuenta Correcto", 0, "Banco De La Republica")
Text2.Text = Data1.Recordset.Fields("Nombre")
Text3.Text = Data1.Recordset.Fields("Direccion")
Text4.Text = Data1.Recordset.Fields("Telefono")
Text5.Text = Data1.Recordset.Fields("Saldo")
Text6.Text = Data1.Recordset.Fields("Tipo De Cuenta")
Text7.Text = Data1.Recordset.Fields("Fecha De Apertura")
End If

Dim cue, nom, dir, tel, sal, tip, fech As String


cue = Text1.Text
nom = Text2.Text
dir = Text3.Text
tel = Text4.Text
sal = Text5.Text
tip = Text6.Text
fech = Text7.Text
Data1.Recordset.AddNew
Data1.Recordset.Fields("Cuenta") = cue
Data1.Recordset.Fields("Nombre") = nom
Data1.Recordset.Fields("Direccion") = dir
Data1.Recordset.Fields("Telefono") = tel
Data1.Recordset.Fields("Saldo") = sal
Data1.Recordset.Fields("Tipo De Cuenta") = tip
Data1.Recordset.Fields("Fecha De Apertura") = fech
Data1.Recordset.Update
x = MsgBox("Datos Guardados Correctamente", 0, "Banco De La Republica")
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""

Text6.Text = ""
Text7.Text = ""
Text1.SetFocus

También podría gustarte

  • Mante
    Mante
    Documento3 páginas
    Mante
    AbnerTomas
    Aún no hay calificaciones
  • Mante
    Mante
    Documento3 páginas
    Mante
    AbnerTomas
    Aún no hay calificaciones
  • Mante
    Mante
    Documento3 páginas
    Mante
    AbnerTomas
    Aún no hay calificaciones
  • Mante
    Mante
    Documento3 páginas
    Mante
    AbnerTomas
    Aún no hay calificaciones
  • Crono
    Crono
    Documento1 página
    Crono
    AbnerTomas
    Aún no hay calificaciones
  • Cronograma
    Cronograma
    Documento2 páginas
    Cronograma
    AbnerTomas
    Aún no hay calificaciones
  • Cronograma
    Cronograma
    Documento2 páginas
    Cronograma
    AbnerTomas
    Aún no hay calificaciones
  • Guia Basica Escuelas Saludables A Color
    Guia Basica Escuelas Saludables A Color
    Documento4 páginas
    Guia Basica Escuelas Saludables A Color
    Juan Perez
    Aún no hay calificaciones
  • Eula
    Eula
    Documento9 páginas
    Eula
    Javier Prada
    Aún no hay calificaciones
  • Cronograma
    Cronograma
    Documento1 página
    Cronograma
    AbnerTomas
    Aún no hay calificaciones
  • Guia
    Guia
    Documento1 página
    Guia
    AbnerTomas
    Aún no hay calificaciones