frmView.frm

 VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{BDC217C8-ED16-11CD-956C-0000C04E4C0A}#1.1#0"; "TABCTL32.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form frmView
   BackColor       =   &H8000000E&
   Caption         =   "Student Record"
   ClientHeight    =   6840
   ClientLeft      =   4515
   ClientTop       =   2220
   ClientWidth     =   9015
   LinkTopic       =   "Form1"
   Moveable        =   0   'False
   ScaleHeight     =   6840
   ScaleWidth      =   9015
   StartUpPosition =   2  'CenterScreen
   Begin VB.CommandButton Command2
      Cancel          =   -1  'True
      Height          =   615
      Left            =   7680
      Picture         =   "frmView.frx":0000
      Style           =   1  'Graphical
      TabIndex        =   32
      Top             =   6000
      Width           =   615
   End
   Begin TabDlg.SSTab SSTab1
      Height          =   4935
      Left            =   360
      TabIndex        =   1
      Top             =   960
      Width           =   8295
      _ExtentX        =   14631
      _ExtentY        =   8705
      _Version        =   393216
      Tabs            =   2
      Tab             =   1
      TabHeight       =   520
      BackColor       =   -2147483634
      TabCaption(0)   =   "Form View"
      TabPicture(0)   =   "frmView.frx":0494
      Tab(0).ControlEnabled=   0   'False
      Tab(0).Control(0)=   "Label1(2)"
      Tab(0).Control(0).Enabled=   0   'False
      Tab(0).Control(1)=   "Label1(3)"
      Tab(0).Control(1).Enabled=   0   'False
      Tab(0).Control(2)=   "Label1(4)"
      Tab(0).Control(2).Enabled=   0   'False
      Tab(0).Control(3)=   "Label1(5)"
      Tab(0).Control(3).Enabled=   0   'False
      Tab(0).Control(4)=   "Label1(6)"
      Tab(0).Control(4).Enabled=   0   'False
      Tab(0).Control(5)=   "Label1(7)"
      Tab(0).Control(5).Enabled=   0   'False
      Tab(0).Control(6)=   "Label1(8)"
      Tab(0).Control(6).Enabled=   0   'False
      Tab(0).Control(7)=   "Label1(9)"
      Tab(0).Control(7).Enabled=   0   'False
      Tab(0).Control(8)=   "Label1(10)"
      Tab(0).Control(8).Enabled=   0   'False
      Tab(0).Control(9)=   "lblCN"
      Tab(0).Control(9).Enabled=   0   'False
      Tab(0).Control(10)=   "lblAdd"
      Tab(0).Control(10).Enabled=   0   'False
      Tab(0).Control(11)=   "lblDOB"
      Tab(0).Control(11).Enabled=   0   'False
      Tab(0).Control(12)=   "lblYear"
      Tab(0).Control(12).Enabled=   0   'False
      Tab(0).Control(13)=   "lblCourse"
      Tab(0).Control(13).Enabled=   0   'False
      Tab(0).Control(14)=   "lblMI"
      Tab(0).Control(14).Enabled=   0   'False
      Tab(0).Control(15)=   "lblFN"
      Tab(0).Control(15).Enabled=   0   'False
      Tab(0).Control(16)=   "lblLN"
      Tab(0).Control(16).Enabled=   0   'False
      Tab(0).Control(17)=   "lblSN"
      Tab(0).Control(17).Enabled=   0   'False
      Tab(0).Control(18)=   "Label1(12)"
      Tab(0).Control(18).Enabled=   0   'False
      Tab(0).Control(19)=   "PicBox"
      Tab(0).Control(19).Enabled=   0   'False
      Tab(0).Control(20)=   "Command1"
      Tab(0).Control(20).Enabled=   0   'False
      Tab(0).Control(21)=   "cmdPicShow"
      Tab(0).Control(21).Enabled=   0   'False
      Tab(0).Control(22)=   "fraNavigation"
      Tab(0).Control(22).Enabled=   0   'False
      Tab(0).ControlCount=   23
      TabCaption(1)   =   "Grid View"
      TabPicture(1)   =   "frmView.frx":04B0
      Tab(1).ControlEnabled=   -1  'True
      Tab(1).Control(0)=   "Line2"
      Tab(1).Control(0).Enabled=   0   'False
      Tab(1).Control(1)=   "cmdClose"
      Tab(1).Control(1).Enabled=   0   'False
      Tab(1).Control(2)=   "DataGrid1"
      Tab(1).Control(2).Enabled=   0   'False
      Tab(1).ControlCount=   3
      Begin MSDataGridLib.DataGrid DataGrid1
         Bindings        =   "frmView.frx":04CC
         Height          =   4215
         Left            =   120
         TabIndex        =   35
         Top             =   480
         Width           =   7935
         _ExtentX        =   13996
         _ExtentY        =   7435
         _Version        =   393216
         BackColor       =   -2147483625
         ForeColor       =   -2147483624
         HeadLines       =   1
         RowHeight       =   15
         FormatLocked    =   -1  'True
         BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
            Name            =   "MS Sans Serif"
            Size            =   8.25
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
            Name            =   "MS Sans Serif"
            Size            =   8.25
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ColumnCount     =   10
         BeginProperty Column00
            DataField       =   "SN"
            Caption         =   "SN"
            BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
               Type            =   0
               Format          =   ""
               HaveTrueFalseNull=   0
               FirstDayOfWeek  =   0
               FirstWeekOfYear =   0
               LCID            =   1033
               SubFormatType   =   0
            EndProperty
         EndProperty
         BeginProperty Column01
            DataField       =   "LN"
            Caption         =   "LN"
            BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
               Type            =   0
               Format          =   ""
               HaveTrueFalseNull=   0
               FirstDayOfWeek  =   0
               FirstWeekOfYear =   0
               LCID            =   1033
               SubFormatType   =   0
            EndProperty
         EndProperty
         BeginProperty Column02
            DataField       =   "FN"
            Caption         =   "FN"
            BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
               Type            =   0
               Format          =   ""
               HaveTrueFalseNull=   0
               FirstDayOfWeek  =   0
               FirstWeekOfYear =   0
               LCID            =   1033
               SubFormatType   =   0
            EndProperty
         EndProperty
         BeginProperty Column03
            DataField       =   "MI"
            Caption         =   "MI"
            BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
               Type            =   0
               Format          =   ""
               HaveTrueFalseNull=   0
               FirstDayOfWeek  =   0
               FirstWeekOfYear =   0
               LCID            =   1033
               SubFormatType   =   0
            EndProperty
         EndProperty
         BeginProperty Column04
            DataField       =   "DOB"
            Caption         =   "DOB"
            BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
               Type            =   0
               Format          =   ""
               HaveTrueFalseNull=   0
               FirstDayOfWeek  =   0
               FirstWeekOfYear =   0
               LCID            =   1033
               SubFormatType   =   0
            EndProperty
         EndProperty
         BeginProperty Column05
            DataField       =   "ADD"
            Caption         =   "ADD"
            BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
               Type            =   0
               Format          =   ""
               HaveTrueFalseNull=   0
               FirstDayOfWeek  =   0
               FirstWeekOfYear =   0
               LCID            =   1033
               SubFormatType   =   0
            EndProperty
         EndProperty
         BeginProperty Column06
            DataField       =   "CN"
            Caption         =   "CN"
            BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
               Type            =   0
               Format          =   ""
               HaveTrueFalseNull=   0
               FirstDayOfWeek  =   0
               FirstWeekOfYear =   0
               LCID            =   1033
               SubFormatType   =   0
            EndProperty
         EndProperty
         BeginProperty Column07
            DataField       =   "COURSE"
            Caption         =   "COURSE"
            BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
               Type            =   0
               Format          =   ""
               HaveTrueFalseNull=   0
               FirstDayOfWeek  =   0
               FirstWeekOfYear =   0
               LCID            =   1033
               SubFormatType   =   0
            EndProperty
         EndProperty
         BeginProperty Column08
            DataField       =   "YEARLEV"
            Caption         =   "YEARLEV"
            BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
               Type            =   0
               Format          =   ""
               HaveTrueFalseNull=   0
               FirstDayOfWeek  =   0
               FirstWeekOfYear =   0
               LCID            =   1033
               SubFormatType   =   0
            EndProperty
         EndProperty
         BeginProperty Column09
            DataField       =   "Picture"
            Caption         =   "Picture"
            BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
               Type            =   0
               Format          =   ""
               HaveTrueFalseNull=   0
               FirstDayOfWeek  =   0
               FirstWeekOfYear =   0
               LCID            =   1033
               SubFormatType   =   0
            EndProperty
         EndProperty
         SplitCount      =   1
         BeginProperty Split0
            BeginProperty Column00
               ColumnWidth     =   915.024
            EndProperty
            BeginProperty Column01
               ColumnWidth     =   1739.906
            EndProperty
            BeginProperty Column02
               ColumnWidth     =   1739.906
            EndProperty
            BeginProperty Column03
               ColumnWidth     =   1739.906
            EndProperty
            BeginProperty Column04
               ColumnWidth     =   1739.906
            EndProperty
            BeginProperty Column05
               ColumnWidth     =   1739.906
            EndProperty
            BeginProperty Column06
               ColumnWidth     =   1739.906
            EndProperty
            BeginProperty Column07
               ColumnWidth     =   1739.906
            EndProperty
            BeginProperty Column08
               ColumnWidth     =   1739.906
            EndProperty
            BeginProperty Column09
               ColumnWidth     =   1739.906
            EndProperty
         EndProperty
      End
      Begin VB.Frame fraNavigation
         Height          =   800
         Left            =   -74400
         TabIndex        =   24
         Top             =   3960
         Width           =   1725
         Begin VB.TextBox txtcount
            Alignment       =   2  'Center
            Appearance      =   0  'Flat
            BackColor       =   &H8000000F&
            BorderStyle     =   0  'None
            BeginProperty Font
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Height          =   285
            Left            =   120
            TabIndex        =   29
            Top             =   480
            Width           =   615
         End
         Begin VB.CommandButton cmdNavigate
            Height          =   265
            Index           =   0
            Left            =   30
            Style           =   1  'Graphical
            TabIndex        =   28
            Top             =   120
            Width           =   400
         End
         Begin VB.CommandButton cmdNavigate
            Height          =   265
            Index           =   1
            Left            =   480
            Style           =   1  'Graphical
            TabIndex        =   27
            Top             =   120
            Width           =   400
         End
         Begin VB.CommandButton cmdNavigate
            Height          =   265
            Index           =   2
            Left            =   840
            Style           =   1  'Graphical
            TabIndex        =   26
            Top             =   120
            Width           =   400
         End
         Begin VB.CommandButton cmdNavigate
            Height          =   265
            Index           =   3
            Left            =   1320
            Style           =   1  'Graphical
            TabIndex        =   25
            Top             =   120
            Width           =   400
         End
         Begin VB.Label lblmax
            Alignment       =   2  'Center
            Appearance      =   0  'Flat
            BackColor       =   &H80000005&
            BackStyle       =   0  'Transparent
            BeginProperty Font
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            ForeColor       =   &H80000008&
            Height          =   285
            Left            =   1080
            TabIndex        =   31
            Top             =   480
            Width           =   705
         End
         Begin VB.Label Label12
            BackStyle       =   0  'Transparent
            Caption         =   "  of"
            BeginProperty Font
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            ForeColor       =   &H80000008&
            Height          =   255
            Left            =   720
            TabIndex        =   30
            Top             =   480
            Width           =   255
         End
      End
      Begin VB.CommandButton cmdPicShow
         Height          =   375
         Left            =   -69840
         Style           =   1  'Graphical
         TabIndex        =   22
         ToolTipText     =   "View Picture"
         Top             =   4320
         Width           =   495
      End
      Begin VB.CommandButton Command1
         Caption         =   "View Picture"
         Height          =   255
         Left            =   -68760
         TabIndex        =   21
         Top             =   960
         Width           =   1695
      End
      Begin VB.CommandButton cmdClose
         Height          =   615
         Left            =   7560
         Style           =   1  'Graphical
         TabIndex        =   2
         Top             =   6600
         Width           =   615
      End
      Begin Viray.Photo PicBox
         Height          =   2775
         Left            =   -70320
         TabIndex        =   34
         Top             =   1200
         Width           =   3255
         _ExtentX        =   5741
         _ExtentY        =   4895
      End
      Begin VB.Label Label1
         Caption         =   "View Picture"
         BeginProperty Font
            Name            =   "Tahoma"
            Size            =   9
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Index           =   12
         Left            =   -69240
         TabIndex        =   23
         Top             =   4440
         Width           =   1695
      End
      Begin VB.Label lblSN
         BeginProperty Font
            Name            =   "Tahoma"
            Size            =   9.75
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   -73080
         TabIndex        =   20
         Top             =   600
         Width           =   2175
      End
      Begin VB.Label lblLN
         BeginProperty Font
            Name            =   "Tahoma"
            Size            =   9.75
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   -73080
         TabIndex        =   19
         Top             =   960
         Width           =   2775
      End
      Begin VB.Label lblFN
         BeginProperty Font
            Name            =   "Tahoma"
            Size            =   9.75
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   -73080
         TabIndex        =   18
         Top             =   1320
         Width           =   2775
      End
      Begin VB.Label lblMI
         BeginProperty Font
            Name            =   "Tahoma"
            Size            =   9.75
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   -73080
         TabIndex        =   17
         Top             =   1680
         Width           =   975
      End
      Begin VB.Label lblCourse
         BeginProperty Font
            Name            =   "Tahoma"
            Size            =   9.75
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   -73080
         TabIndex        =   16
         Top             =   2040
         Width           =   1695
      End
      Begin VB.Label lblYear
         BeginProperty Font
            Name            =   "Tahoma"
            Size            =   9.75
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   -73080
         TabIndex        =   15
         Top             =   2400
         Width           =   1455
      End
      Begin VB.Label lblDOB
         BeginProperty Font
            Name            =   "Tahoma"
            Size            =   9.75
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   -73080
         TabIndex        =   14
         Top             =   2760
         Width           =   2295
      End
      Begin VB.Label lblAdd
         BeginProperty Font
            Name            =   "Tahoma"
            Size            =   9.75
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         Left            =   -73080
         TabIndex        =   13
         Top             =   3120
         Width           =   2655
      End
      Begin VB.Label lblCN
         BeginProperty Font
            Name            =   "Tahoma"
            Size            =   9.75
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   -73080
         TabIndex        =   12
         Top             =   3600
         Width           =   2655
      End
      Begin VB.Label Label1
         Caption         =   "Student Number:"
         BeginProperty Font
            Name            =   "Tahoma"
            Size            =   9
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00C00000&
         Height          =   255
         Index           =   10
         Left            =   -74880
         TabIndex        =   11
         Top             =   600
         Width           =   1695
      End
      Begin VB.Label Label1
         Caption         =   "LastName"
         BeginProperty Font
            Name            =   "Tahoma"
            Size            =   9
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00C00000&
         Height          =   255
         Index           =   9
         Left            =   -74880
         TabIndex        =   10
         Top             =   960
         Width           =   1095
      End
      Begin VB.Label Label1
         Caption         =   "First Name"
         BeginProperty Font
            Name            =   "Tahoma"
            Size            =   9
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00C00000&
         Height          =   255
         Index           =   8
         Left            =   -74880
         TabIndex        =   9
         Top             =   1320
         Width           =   975
      End
      Begin VB.Label Label1
         Caption         =   "MI"
         BeginProperty Font
            Name            =   "Tahoma"
            Size            =   9
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00C00000&
         Height          =   255
         Index           =   7
         Left            =   -74880
         TabIndex        =   8
         Top             =   1680
         Width           =   375
      End
      Begin VB.Label Label1
         Caption         =   "Course"
         BeginProperty Font
            Name            =   "Tahoma"
            Size            =   9
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00C00000&
         Height          =   255
         Index           =   6
         Left            =   -74880
         TabIndex        =   7
         Top             =   2040
         Width           =   735
      End
      Begin VB.Label Label1
         Caption         =   "Year Level"
         BeginProperty Font
            Name            =   "Tahoma"
            Size            =   9
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00C00000&
         Height          =   255
         Index           =   5
         Left            =   -74880
         TabIndex        =   6
         Top             =   2400
         Width           =   1095
      End
      Begin VB.Label Label1
         Caption         =   "Date of Birth"
         BeginProperty Font
            Name            =   "Tahoma"
            Size            =   9
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00C00000&
         Height          =   255
         Index           =   4
         Left            =   -74880
         TabIndex        =   5
         Top             =   2760
         Width           =   1335
      End
      Begin VB.Label Label1
         Caption         =   "Address"
         BeginProperty Font
            Name            =   "Tahoma"
            Size            =   9
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00C00000&
         Height          =   255
         Index           =   3
         Left            =   -74880
         TabIndex        =   4
         Top             =   3120
         Width           =   855
      End
      Begin VB.Label Label1
         Caption         =   "Contact Number"
         BeginProperty Font
            Name            =   "Tahoma"
            Size            =   9
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00C00000&
         Height          =   255
         Index           =   2
         Left            =   -74880
         TabIndex        =   3
         Top             =   3600
         Width           =   1695
      End
      Begin VB.Line Line2
         X1              =   720
         X2              =   8520
         Y1              =   6480
         Y2              =   6480
      End
   End
   Begin MSAdodcLib.Adodc Adodc1
      Height          =   330
      Left            =   4320
      Top             =   4680
      Width           =   1335
      _ExtentX        =   2355
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   2
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=viray.mdb;Persist Security Info=False"
      OLEDBString     =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=viray.mdb;Persist Security Info=False"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "tblViray"
      Caption         =   "Adodc1"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin VB.Label Label1
      Caption         =   "Exit"
      BeginProperty Font
         Name            =   "Tahoma"
         Size            =   9
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Index           =   1
      Left            =   7800
      TabIndex        =   33
      Top             =   6600
      Width           =   375
   End
   Begin VB.Image Image1
      Height          =   525
      Left            =   480
      Picture         =   "frmView.frx":04E1
      Top             =   120
      Width           =   555
   End
   Begin VB.Label Label1
      BackColor       =   &H8000000E&
      Caption         =   "Record View"
      BeginProperty Font
         Name            =   "Tahoma"
         Size            =   15.75
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Index           =   0
      Left            =   1200
      TabIndex        =   0
      Top             =   120
      Width           =   2055
   End
   Begin VB.Line Line1
      X1              =   240
      X2              =   8040
      Y1              =   720
      Y2              =   720
   End
End
Attribute VB_Name = "frmView"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim RS As New ADODB.Recordset
Dim cn As New ADODB.Connection
Private Sub cmdClose_Click()
Unload Me
End Sub

Private Sub cmdNavigate_Click(Index As Integer)
Navigate Index, RS
    DisplayRecords
End Sub

Private Sub cmdPicShow_Click()
On Error Resume Next
        Kill "tmp.jpg"
        SavePicture PicBox.Picture, "tmp.jpg"
        ShellEx "tmp.jpg"
End Sub

Private Sub Command1_Click()
Dim RS As New ADODB.Recordset

    With RS
        .Open "SELECT [Picture] FROM tblViray WHERE LN='" & lblLN.Caption & "'", cn, adOpenForwardOnly, adLockOptimistic
        If Len(RS!Picture) > 0 Then
            PicBox.LoadPhoto RS!Picture
        Else
            Set PicBox.Picture = LoadPicture()
        End If
        .Close
    End With
    Set RS = Nothing
End Sub

Private Sub Command2_Click()
Unload Me
End Sub

Private Sub Form_Load()
AnimateForm Me, aLoad, aMedium
Set cn = New ADODB.Connection
Set RS = New ADODB.Recordset
cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\Viray.mdb;"
With RS
        .ActiveConnection = cn
        .CursorLocation = adUseClient
        .CursorType = adOpenDynamic
        .LockType = adLockOptimistic
        .Source = "select * from tblViray"
        .Open
End With


With RS
            If .RecordCount < 1 Then
                txtcount.Text = 0
            Else
                txtcount.Text = .AbsolutePosition
            End If
            lblmax.Caption = .RecordCount
        End With
       
       
        With RS
         lblSN.Caption = .Fields("SN")
                lblLN.Caption = .Fields("LN")
                lblFN.Caption = .Fields("FN")
                lblMI.Caption = .Fields("MI")
                lblCourse.Caption = .Fields("COURSE")
                lblYear.Caption = .Fields("YEARLEV")
                lblAdd.Caption = .Fields("ADD")
                lblCN.Caption = .Fields("CN")
                lblDOB.Caption = .Fields("DOB")
            End With


End Sub


Private Sub Form_Unload(Cancel As Integer)
AnimateForm Me, aUnload, aMedium
End Sub

Private Sub DisplayRecords()

'Display the current and total number of record

Dim i As Integer

    On Error Resume Next
        With RS
            If .RecordCount < 1 Then
                txtcount.Text = 0
            Else
                txtcount.Text = .AbsolutePosition
            End If
            lblmax.Caption = .RecordCount

            For i = 0 To 6
                 lblSN.Caption = .Fields("SN")
                lblLN.Caption = .Fields("LN")
                lblFN.Caption = .Fields("FN")
                lblMI.Caption = .Fields("MI")
                lblCourse.Caption = .Fields("COURSE")
                lblYear.Caption = .Fields("YEARLEV")
                lblAdd.Caption = .Fields("ADD")
                lblCN.Caption = .Fields("CN")
                lblDOB.Caption = .Fields("DOB")
            Next i
        End With
      
End Sub

Project Homepage: