VERSION 5.00
Begin VB.Form frmPass 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "Introduzca Contraseņa"
   ClientHeight    =   6270
   ClientLeft      =   3900
   ClientTop       =   3570
   ClientWidth     =   3735
   Icon            =   "pass.frx":0000
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MinButton       =   0   'False
   Moveable        =   0   'False
   ScaleHeight     =   6270
   ScaleWidth      =   3735
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  'CenterScreen
   Begin VB.Data Data1 
      Caption         =   "Data1"
      Connect         =   "Access"
      DatabaseName    =   ""
      DefaultCursorType=   0  'DefaultCursor
      DefaultType     =   2  'UseODBC
      Exclusive       =   0   'False
      Height          =   300
      Left            =   3720
      Options         =   0
      ReadOnly        =   0   'False
      RecordsetType   =   1  'Dynaset
      RecordSource    =   ""
      Top             =   6000
      Width           =   1140
   End
   Begin VB.Frame Frame1 
      Height          =   735
      Left            =   120
      TabIndex        =   14
      Top             =   0
      Width           =   3495
      Begin VB.Label Label1 
         Alignment       =   2  'Center
         Caption         =   "CONTRASEŅA"
         BeginProperty Font 
            Name            =   "MS Sans Serif"
            Size            =   13.5
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         Left            =   480
         TabIndex        =   15
         Top             =   240
         Width           =   2415
      End
   End
   Begin VB.TextBox Text1 
      Alignment       =   2  'Center
      Appearance      =   0  'Flat
      BeginProperty Font 
         Name            =   "Arial"
         Size            =   21.75
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   630
      IMEMode         =   3  'DISABLE
      Left            =   240
      PasswordChar    =   "*"
      TabIndex        =   0
      Top             =   960
      Width           =   3255
   End
   Begin VB.CommandButton CancelButton 
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   13.5
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   1095
      Left            =   2400
      Picture         =   "pass.frx":0E42
      Style           =   1  'Graphical
      TabIndex        =   2
      Top             =   4920
      Width           =   1095
   End
   Begin VB.CommandButton OKButton 
      Default         =   -1  'True
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   13.5
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   1095
      Left            =   240
      Picture         =   "pass.frx":2830
      Style           =   1  'Graphical
      TabIndex        =   1
      Top             =   4920
      Width           =   1095
   End
   Begin VB.Frame Frame4 
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   5415
      Left            =   120
      TabIndex        =   3
      Top             =   720
      Width           =   3495
      Begin VB.CommandButton bNumero 
         Caption         =   "0"
         BeginProperty Font 
            Name            =   "Arial"
            Size            =   36
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   1095
         Index           =   0
         Left            =   1200
         TabIndex        =   13
         Top             =   4200
         Width           =   1095
      End
      Begin VB.CommandButton bNumero 
         Caption         =   "3"
         BeginProperty Font 
            Name            =   "Arial"
            Size            =   36
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   1095
         Index           =   3
         Left            =   2280
         TabIndex        =   12
         Top             =   3120
         Width           =   1095
      End
      Begin VB.CommandButton bNumero 
         Caption         =   "2"
         BeginProperty Font 
            Name            =   "Arial"
            Size            =   36
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   1095
         Index           =   2
         Left            =   1200
         TabIndex        =   11
         Top             =   3120
         Width           =   1095
      End
      Begin VB.CommandButton bNumero 
         Caption         =   "1"
         BeginProperty Font 
            Name            =   "Arial"
            Size            =   36
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   1095
         Index           =   1
         Left            =   120
         TabIndex        =   10
         Top             =   3120
         Width           =   1095
      End
      Begin VB.CommandButton bNumero 
         Caption         =   "6"
         BeginProperty Font 
            Name            =   "Arial"
            Size            =   36
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   1095
         Index           =   6
         Left            =   2280
         TabIndex        =   9
         Top             =   2040
         Width           =   1095
      End
      Begin VB.CommandButton bNumero 
         Caption         =   "5"
         BeginProperty Font 
            Name            =   "Arial"
            Size            =   36
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   1095
         Index           =   5
         Left            =   1200
         TabIndex        =   8
         Top             =   2040
         Width           =   1095
      End
      Begin VB.CommandButton bNumero 
         Caption         =   "4"
         BeginProperty Font 
            Name            =   "Arial"
            Size            =   36
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   1095
         Index           =   4
         Left            =   120
         TabIndex        =   7
         Top             =   2040
         Width           =   1095
      End
      Begin VB.CommandButton bNumero 
         Caption         =   "9"
         BeginProperty Font 
            Name            =   "Arial"
            Size            =   36
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   1095
         Index           =   9
         Left            =   2280
         TabIndex        =   6
         Top             =   960
         Width           =   1095
      End
      Begin VB.CommandButton bNumero 
         Caption         =   "8"
         BeginProperty Font 
            Name            =   "Arial"
            Size            =   36
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   1095
         Index           =   8
         Left            =   1200
         TabIndex        =   5
         Top             =   960
         Width           =   1095
      End
      Begin VB.CommandButton bNumero 
         Caption         =   "7"
         BeginProperty Font 
            Name            =   "Arial"
            Size            =   36
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   1095
         Index           =   7
         Left            =   120
         TabIndex        =   4
         Top             =   960
         Width           =   1095
      End
   End
End
Attribute VB_Name = "frmPass"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Option Explicit

Private Sub bNumero_Click(Index As Integer)
    Text1.Text = Text1.Text & bNumero(Index).Caption
    
    'dinero = (dinero * 10) + ((bNumero(Index).Caption) / 100)
    'LPrecio = dinero
End Sub

Private Sub CancelButton_Click()
Unload Me
End Sub

Private Sub OKButton_Click()


    Dim f2 As Date
    Dim f3 As Date
If Text1.Text = "1948" Then
    f2 = Date
    f3 = Date
    estadisticas f2, f3

    frmEstadisticas.Command4.Enabled = False
    
    frmEstadisticas.Label1.Visible = True
    frmEstadisticas.Command3.Visible = True
    frmEstadisticas.Command4.Visible = True
    frmEstadisticas.Text2.Visible = True
    
     frmEstadisticas.bBorrar.Visible = True
     
    
     Unload Me

Else

If Text1.Text = pass Then
  
    f2 = Date
    f3 = Date
    estadisticas f2, f3

    frmEstadisticas.Command4.Enabled = False
    
    frmEstadisticas.Label1.Visible = True
    frmEstadisticas.Command3.Visible = True
    frmEstadisticas.Command4.Visible = True
    frmEstadisticas.Text2.Visible = True
    frmEstadisticas.bBorrar.Visible = False
    
    
    Unload Me
Else
            
    MsgBox "CONTRASEŅA NO VALIDA"
    Unload Me
    Panel.SetFocus
    
End If
End If
End Sub
