VERSION 5.00
Begin VB.Form frmRestaurar 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "Restaurar"
   ClientHeight    =   2415
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   6630
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2415
   ScaleWidth      =   6630
   StartUpPosition =   2  'CenterScreen
   Begin VB.CommandButton cmdAceptar 
      Caption         =   "Restaurar"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   18
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   735
      Left            =   1920
      TabIndex        =   2
      Top             =   1200
      Width           =   2775
   End
   Begin VB.TextBox txtNrodeCliente 
      Height          =   495
      Left            =   3000
      TabIndex        =   0
      Top             =   360
      Width           =   3375
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "Nro. de Cliente"
      BeginProperty Font 
         Name            =   "Arial"
         Size            =   18
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   435
      Left            =   240
      TabIndex        =   1
      Top             =   360
      Width           =   2550
   End
End
Attribute VB_Name = "frmRestaurar"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdAceptar_Click()
    If txtNrodeCliente.Text = "" Then
        MsgBox "Debe Ingresar un Nmero de Cliente Para Poder Restaurar El Cliente!", vbCritical
        txtNrodeCliente.SetFocus
    Else
        Set rst = Base.OpenRecordset("select * from Clientes where NroDeCliente =" & txtNrodeCliente.Text & ";")
        If rst.BOF And rst.EOF Then
            MsgBox ("El Nro De Cliente Ingresado No Existe!")
            cmdIrNro.Value = True
        Else
            rstClientes.MoveFirst
            Do While rstClientes!NrodeCliente <> txtNrodeCliente
                rstClientes.MoveNext
            Loop
            rstClientes.Edit
            rstClientes!estado = 1
            rstClientes.Update
            MsgBox ("El Cliente Ha Sido Restaurado!")
            Me.Hide
        End If
    End If
End Sub
