VERSION 5.00
Begin VB.Form Form_sugerencias 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "Actualización GesCol"
   ClientHeight    =   3030
   ClientLeft      =   2355
   ClientTop       =   2385
   ClientWidth     =   5925
   Icon            =   "Form_sugerencias.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   MinButton       =   0   'False
   ScaleHeight     =   3030
   ScaleWidth      =   5925
   WhatsThisButton =   -1  'True
   WhatsThisHelp   =   -1  'True
   Begin VB.CommandButton cmdNextTip 
      Caption         =   "&Siguiente"
      BeginProperty Font 
         Name            =   "Arial"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   435
      Left            =   4560
      TabIndex        =   2
      Top             =   960
      Width           =   1215
   End
   Begin VB.PictureBox Picture1 
      BackColor       =   &H00FFFFFF&
      Height          =   2595
      Left            =   120
      ScaleHeight     =   2535
      ScaleWidth      =   4155
      TabIndex        =   1
      Top             =   240
      Width           =   4215
      Begin VB.Label Label1 
         Alignment       =   2  'Center
         BackColor       =   &H00FFFFFF&
         BeginProperty Font 
            Name            =   "Arial"
            Size            =   9.75
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   495
         Left            =   120
         TabIndex        =   5
         Top             =   240
         Width           =   3855
      End
      Begin VB.Label lblTipText 
         BackColor       =   &H00FFFFFF&
         BeginProperty Font 
            Name            =   "Arial"
            Size            =   8.25
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   1395
         Left            =   120
         TabIndex        =   4
         Top             =   960
         Width           =   3915
      End
   End
   Begin VB.CommandButton cmdOK 
      Cancel          =   -1  'True
      Caption         =   "&Aceptar"
      Default         =   -1  'True
      BeginProperty Font 
         Name            =   "Arial"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   435
      Left            =   4560
      Style           =   1  'Graphical
      TabIndex        =   0
      Top             =   360
      Width           =   1215
   End
   Begin VB.CheckBox chkLoadTipsAtStartup 
      Caption         =   "&Mostrar sugerencias al iniciar"
      BeginProperty Font 
         Name            =   "Arial"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   315
      Left            =   120
      TabIndex        =   3
      Top             =   3120
      Visible         =   0   'False
      Width           =   2775
   End
   Begin VB.Image Image1 
      Height          =   465
      Left            =   4920
      Picture         =   "Form_sugerencias.frx":2A8B2
      Top             =   2040
      Width           =   480
   End
End
Attribute VB_Name = "Form_sugerencias"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim REC1 As ADODB.Recordset
Dim REC2 As ADODB.Recordset
Dim QRY1 As String
Dim QRY2 As String
Dim b As Integer
Dim siguiente As Integer
Option Explicit

Private Sub cmdNextTip_Click()
Set REC2 = New ADODB.Recordset

siguiente = 1

Dim resb As Integer

If b = 1 Then
   b = REC1("id")
Else
    b = b - 1
End If

    QRY2 = "SELECT * FROM actualizacion WHERE id = " & b
    REC2.Open QRY2, conn
    
    Label1.Caption = REC2("titulo")
    lblTipText.Caption = REC2("descripcion")

End Sub

Private Sub cmdOK_Click()
    Unload Me
End Sub

Private Sub Form_Load()
siguiente = 0

Set REC1 = New ADODB.Recordset

Form_sugerencias.Height = 3360
Form_sugerencias.Width = 6045
CentrarForma Me

QRY1 = "SELECT * FROM actualizacion ORDER BY id DESC LIMIT 1"
REC1.Open QRY1, conn

b = REC1("id")
Label1.Caption = REC1("titulo")
lblTipText.Caption = REC1("descripcion")

   
End Sub

Private Sub Form_Unload(Cancel As Integer)
    REC1.Close
    If siguiente = 1 Then
        REC2.Close
    End If
    
    Call menuhabilitado(True)
End Sub
