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

📄 frmusers.frm

📁 School Library system to manage students borrowing and returning books
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmUsers 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "Library System Users"
   ClientHeight    =   2265
   ClientLeft      =   45
   ClientTop       =   435
   ClientWidth     =   4800
   Icon            =   "frmUsers.frx":0000
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   MinButton       =   0   'False
   ScaleHeight     =   2265
   ScaleWidth      =   4800
   Begin VB.Frame Frame1 
      Height          =   2175
      Left            =   120
      TabIndex        =   0
      Top             =   0
      Width           =   4575
      Begin VB.CommandButton cmdprev 
         Caption         =   "<<"
         Height          =   375
         Left            =   1320
         TabIndex        =   7
         Top             =   1200
         Width           =   975
      End
      Begin VB.CommandButton cmdnext 
         Caption         =   ">>"
         Height          =   375
         Left            =   2280
         TabIndex        =   6
         Top             =   1200
         Width           =   975
      End
      Begin VB.CommandButton cmdexit 
         Caption         =   "E&xit"
         Height          =   375
         Left            =   1800
         TabIndex        =   5
         Top             =   1680
         Width           =   975
      End
      Begin VB.TextBox txtpass 
         DataField       =   "Password"
         DataSource      =   "Datuser"
         Height          =   285
         IMEMode         =   3  'DISABLE
         Left            =   1920
         PasswordChar    =   "*"
         TabIndex        =   4
         Top             =   600
         Width           =   2295
      End
      Begin VB.TextBox txtname 
         DataField       =   "UserName"
         DataSource      =   "Datuser"
         Height          =   285
         Left            =   1920
         TabIndex        =   3
         Top             =   240
         Width           =   2295
      End
      Begin VB.Data Datuser 
         Caption         =   "users"
         Connect         =   "Access"
         DatabaseName    =   "C:\LIBRARY\Library.mdb"
         DefaultCursorType=   0  'DefaultCursor
         DefaultType     =   2  'UseODBC
         Exclusive       =   0   'False
         Height          =   375
         Left            =   2160
         Options         =   0
         ReadOnly        =   0   'False
         RecordsetType   =   1  'Dynaset
         RecordSource    =   "Settings"
         Top             =   960
         Visible         =   0   'False
         Width           =   1575
      End
      Begin VB.Label Label2 
         Caption         =   "User Name"
         Height          =   375
         Left            =   360
         TabIndex        =   2
         Top             =   240
         Width           =   1575
      End
      Begin VB.Label Label1 
         Caption         =   "User Password"
         Height          =   375
         Left            =   360
         TabIndex        =   1
         Top             =   720
         Width           =   1575
      End
   End
End
Attribute VB_Name = "frmUsers"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdexit_Click()
Unload Me
End Sub

Private Sub cmdnext_Click()
If Datuser.Recordset.EOF = True Then
Datuser.Recordset.MoveLast
MsgBox ("This is the last Record")
Else
Datuser.Recordset.movenext
If Datuser.Recordset.EOF = True Then
Datuser.Recordset.MoveLast
MsgBox ("This is The last Record")
     End If
End If
End Sub

Private Sub cmdprev_Click()
If Datuser.Recordset.BOF = True Then
Datuser_return.Recordset.MoveFirst
MsgBox ("This is the First Record")
Else
Datuser.Recordset.moveprevious
If Datuser.Recordset.BOF = True Then
Datuser.Recordset.MoveFirst
MsgBox ("This is The First Record")
     End If
End If
End Sub

⌨️ 快捷键说明

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