⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frmuserparticulars.frm

📁 School Library system to manage students borrowing and returning books
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Begin VB.Form frmuserparticulars 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "User Particulars Form"
   ClientHeight    =   5505
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   6855
   ControlBox      =   0   'False
   Icon            =   "frmuserparticulars.frx":0000
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   MinButton       =   0   'False
   ScaleHeight     =   5505
   ScaleWidth      =   6855
   Begin VB.CommandButton cmdexit 
      Caption         =   "E&xit"
      Height          =   375
      Left            =   3000
      MaskColor       =   &H00000000&
      Style           =   1  'Graphical
      TabIndex        =   16
      Top             =   4920
      Width           =   975
   End
   Begin VB.CommandButton cmddiscontinue 
      Caption         =   "Activate\Deactivate"
      Height          =   375
      Left            =   2760
      MaskColor       =   &H00000000&
      Style           =   1  'Graphical
      TabIndex        =   15
      Top             =   4440
      Width           =   1575
   End
   Begin VB.CommandButton cmdaddnew 
      Caption         =   "Add New User"
      Height          =   375
      Left            =   4320
      MaskColor       =   &H00000000&
      Style           =   1  'Graphical
      TabIndex        =   14
      Top             =   3840
      Width           =   1335
   End
   Begin VB.TextBox txtusertn 
      DataField       =   "student3rdname"
      DataSource      =   "datuserdetails"
      Enabled         =   0   'False
      Height          =   285
      Left            =   4800
      TabIndex        =   2
      Top             =   600
      Width           =   1575
   End
   Begin VB.TextBox txtuseraddress 
      DataField       =   "address"
      DataSource      =   "datuserdetails"
      Enabled         =   0   'False
      Height          =   495
      Left            =   1560
      MultiLine       =   -1  'True
      TabIndex        =   4
      Top             =   1320
      Width           =   2055
   End
   Begin VB.TextBox txtuserid 
      DataField       =   "studentID"
      DataSource      =   "datuserdetails"
      Enabled         =   0   'False
      Height          =   285
      Left            =   1560
      TabIndex        =   3
      Top             =   960
      Width           =   2055
   End
   Begin VB.TextBox txtuserdate 
      DataField       =   "datereg"
      DataSource      =   "datuserdetails"
      Enabled         =   0   'False
      Height          =   375
      Left            =   1560
      TabIndex        =   7
      Top             =   2880
      Width           =   2055
   End
   Begin VB.Frame Frame1 
      Caption         =   "User Particulars"
      Height          =   5415
      Left            =   120
      TabIndex        =   18
      Top             =   0
      Width           =   6615
      Begin VB.CommandButton cmdsave2 
         Caption         =   "Save Update"
         Height          =   375
         Left            =   2760
         Style           =   1  'Graphical
         TabIndex        =   32
         Top             =   3840
         Visible         =   0   'False
         Width           =   1335
      End
      Begin VB.CommandButton cmdsave1 
         Caption         =   "Sa&ve"
         Height          =   375
         Left            =   1320
         Style           =   1  'Graphical
         TabIndex        =   31
         Top             =   4440
         Width           =   1215
      End
      Begin VB.Frame Frame2 
         Caption         =   "Active "
         Height          =   1455
         Left            =   4080
         TabIndex        =   29
         Top             =   2280
         Width           =   2175
         Begin VB.Label lblactive 
            Alignment       =   2  'Center
            BorderStyle     =   1  'Fixed Single
            BeginProperty Font 
               Name            =   "Lucida Sans Unicode"
               Size            =   14.25
               Charset         =   0
               Weight          =   700
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Height          =   615
            Left            =   120
            TabIndex        =   30
            Top             =   480
            Width           =   1935
         End
      End
      Begin VB.CommandButton cmdupdate 
         Caption         =   "&Update"
         Height          =   375
         Left            =   2760
         Style           =   1  'Graphical
         TabIndex        =   28
         Top             =   3840
         Width           =   1335
      End
      Begin VB.CommandButton cmdsearch 
         Caption         =   "Search"
         Height          =   375
         Left            =   1320
         Style           =   1  'Graphical
         TabIndex        =   11
         Top             =   3840
         Width           =   1335
      End
      Begin VB.TextBox txtcountry 
         DataField       =   "Country"
         DataSource      =   "datuserdetails"
         Enabled         =   0   'False
         Height          =   375
         Left            =   1440
         TabIndex        =   6
         Top             =   2400
         Width           =   2055
      End
      Begin VB.TextBox txtcity 
         DataField       =   "City"
         DataSource      =   "datuserdetails"
         Enabled         =   0   'False
         Height          =   375
         Left            =   1440
         TabIndex        =   5
         Top             =   1920
         Width           =   2055
      End
      Begin VB.CommandButton cmdcancel 
         Caption         =   "&Cancel"
         Height          =   375
         Left            =   4320
         Style           =   1  'Graphical
         TabIndex        =   17
         Top             =   4440
         Visible         =   0   'False
         Width           =   1215
      End
      Begin VB.TextBox txtuserfn 
         DataField       =   "studentFName"
         DataSource      =   "datuserdetails"
         Enabled         =   0   'False
         Height          =   285
         Left            =   1440
         TabIndex        =   0
         Top             =   600
         Width           =   1695
      End
      Begin VB.TextBox txtusersn 
         DataField       =   "studentSName"
         DataSource      =   "datuserdetails"
         Enabled         =   0   'False
         Height          =   285
         Left            =   3120
         TabIndex        =   1
         Top             =   600
         Width           =   1575
      End
      Begin VB.Data datuserdetails 
         Caption         =   "User Details"
         Connect         =   "Access"
         DatabaseName    =   "C:\LIBRARY\Library.mdb"
         DefaultCursorType=   0  'DefaultCursor
         DefaultType     =   2  'UseODBC
         Exclusive       =   0   'False
         Height          =   300
         Left            =   120
         Options         =   0
         ReadOnly        =   0   'False
         RecordsetType   =   1  'Dynaset
         RecordSource    =   "studentdetails"
         Top             =   4560
         Visible         =   0   'False
         Width           =   1140
      End
      Begin VB.CommandButton cmdsave 
         Caption         =   "&Save"
         Height          =   375
         Left            =   1320
         Style           =   1  'Graphical
         TabIndex        =   25
         Top             =   4440
         Width           =   1215
      End
      Begin VB.CommandButton cmdprevious 
         Caption         =   "< &Previous"
         Height          =   375
         Left            =   240
         Style           =   1  'Graphical
         TabIndex        =   12
         Top             =   3840
         Width           =   975
      End
      Begin VB.CommandButton cmdnext 
         Caption         =   "&Next >"
         Height          =   375
         Left            =   5640
         Style           =   1  'Graphical
         TabIndex        =   13
         Top             =   3840
         Width           =   855
      End
      Begin VB.TextBox txtproffession 
         DataField       =   "profession"
         DataSource      =   "datuserdetails"
         Enabled         =   0   'False
         Height          =   375
         Left            =   1440
         TabIndex        =   8
         Top             =   3360
         Width           =   2055
      End
      Begin VB.Frame frmgender 
         Caption         =   "Gender"
         Height          =   1215
         Left            =   4080
         TabIndex        =   23
         Top             =   960
         Width           =   1215
         Begin VB.OptionButton optmale 
            Caption         =   "Male"
            Height          =   375
            Left            =   240
            TabIndex        =   10
            Top             =   720
            Width           =   855
         End
         Begin VB.OptionButton optfemale 
            Caption         =   "Female"
            Height          =   375
            Left            =   240
            TabIndex        =   9
            Top             =   360
            Width           =   855
         End
      End
      Begin VB.Label lblcountry 
         Caption         =   "Country"
         Height          =   255
         Left            =   120
         TabIndex        =   27
         Top             =   2520
         Width           =   1215
      End
      Begin VB.Label lblcity 
         Caption         =   "City"
         Height          =   255
         Left            =   120
         TabIndex        =   26
         Top             =   2040
         Width           =   1215
      End
      Begin VB.Label lblproffession 
         Caption         =   "Proffession"
         Height          =   255
         Left            =   120
         TabIndex        =   24
         Top             =   3480
         Width           =   1215
      End
      Begin VB.Label lblusername 
         Caption         =   "User Names"
         Height          =   255
         Left            =   120
         TabIndex        =   22
         Top             =   600
         Width           =   1215
      End
      Begin VB.Label lbluserid 
         Caption         =   "User ID"
         Height          =   255
         Left            =   120
         TabIndex        =   21
         Top             =   1080
         Width           =   1215
      End
      Begin VB.Label lbluseraddress 
         Caption         =   "Address"
         Height          =   255
         Left            =   120
         TabIndex        =   20
         Top             =   1560
         Width           =   1215
      End
      Begin VB.Label lbldate 
         Caption         =   "Date of Reg."
         Height          =   255
         Left            =   120
         TabIndex        =   19
         Top             =   3000
         Width           =   1215
      End
   End
   Begin VB.Menu mnufile 
      Caption         =   "&File"
      Begin VB.Menu mnuaddnew 
         Caption         =   "Add New"
      End
      Begin VB.Menu mnusave 
         Caption         =   "&Save"
      End
      Begin VB.Menu mnucancel 
         Caption         =   "Cancel"
      End
      Begin VB.Menu mnudiscontinue 
         Caption         =   "Continue\Discontinue User"
      End
      Begin VB.Menu mnureport 
         Caption         =   "Report"
      End
      Begin VB.Menu mnuexit1 
         Caption         =   "E&xit"
      End
   End
   Begin VB.Menu mnuedit 
      Caption         =   "&Edit"
      Begin VB.Menu mnumovenext 
         Caption         =   "Move Next"
      End
      Begin VB.Menu mnuprevious 
         Caption         =   "Move Previous"
      End
      Begin VB.Menu mnufirst 
         Caption         =   "Move First"
      End
      Begin VB.Menu mnulast 
         Caption         =   "Move Last"
      End
      Begin VB.Menu mnusearch 
         Caption         =   "Search"
      End
   End
   Begin VB.Menu mnulibrary 
      Caption         =   "&Library"
      Begin VB.Menu mnubookinfo 
         Caption         =   "Book Details"
      End
      Begin VB.Menu mnuborrowed 
         Caption         =   "Borrowed Books"
      End
      Begin VB.Menu mnuborrow 
         Caption         =   "Borrow Book"
      End
      Begin VB.Menu mnureturn 
         Caption         =   "Return Book"
      End
   End
   Begin VB.Menu mnuwindow 
      Caption         =   "&Window"
      Begin VB.Menu mnuhorizontal 
         Caption         =   "Tile Horizontal"
      End
      Begin VB.Menu mnuvertical 
         Caption         =   "Tile Vertical"
      End
   End
End
Attribute VB_Name = "frmuserparticulars"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim gender As String

Private Sub cmdaddnew_Click()
'for adding new user to the library
addnew
End Sub

Private Sub cmdcancel_Click()
'cancel the addnew method after it has been called
cancel
End Sub

Private Sub cmddiscontinue_Click()
'used to discontinuing the user from accessing any of the library  facilities.
'callcont\disc
cont_disc
End Sub

Private Sub cmdexit_Click()
'for exiting and then calling the exitsure procedure
exitsure
End Sub
Private Sub cmdnext_Click()
'moving to the next record if any
movenext
End Sub

Private Sub cmdprevious_Click()
'move the record pointer to the previous record if any
moveprevious
End Sub

Private Sub cmdsave_Click()
'for saving the addnew
Save
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -