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

📄 pass.frm

📁 系统实现了图书的添加
💻 FRM
字号:
VERSION 5.00
Begin VB.Form pass 
   Caption         =   "图书管理系统"
   ClientHeight    =   4785
   ClientLeft      =   60
   ClientTop       =   420
   ClientWidth     =   6240
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   4785
   ScaleWidth      =   6240
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton Command2 
      Caption         =   "取消"
      Height          =   375
      Left            =   3360
      TabIndex        =   5
      Top             =   3960
      Width           =   1215
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确定"
      Height          =   375
      Left            =   1680
      TabIndex        =   4
      Top             =   3960
      Width           =   1095
   End
   Begin VB.Frame Frame1 
      Caption         =   "用户登录"
      Height          =   2055
      Left            =   1200
      TabIndex        =   0
      Top             =   1320
      Width           =   3735
      Begin VB.TextBox Text1 
         Height          =   375
         IMEMode         =   3  'DISABLE
         Index           =   1
         Left            =   1200
         PasswordChar    =   "*"
         TabIndex        =   7
         Top             =   1320
         Width           =   1575
      End
      Begin VB.TextBox Text1 
         Height          =   375
         Index           =   0
         Left            =   1200
         TabIndex        =   3
         Top             =   480
         Width           =   1575
      End
      Begin VB.Label Label2 
         Caption         =   "密  码"
         Height          =   255
         Left            =   480
         TabIndex        =   2
         Top             =   1440
         Width           =   615
      End
      Begin VB.Label Label1 
         Caption         =   "用户名"
         Height          =   375
         Left            =   480
         TabIndex        =   1
         Top             =   600
         Width           =   735
      End
   End
   Begin VB.Label Label3 
      Caption         =   "图书管理系统"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   26.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   615
      Left            =   1440
      TabIndex        =   6
      Top             =   360
      Width           =   3255
   End
End
Attribute VB_Name = "pass"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public n As Integer
Private Sub Form_Load()
    n = 0
End Sub
Private Sub Command1_Click()
    Dim mrc As ADODB.Recordset
        txtsql = "select * from oper where 用户名='" & Trim$(Text1(0).Text) & "'" & _
            "And 口令='" & Trim$(Text1(1).Text) + "'"
    Set mrc = exesql(txtsql)
    If mrc.RecordCount = 0 Then
     n = n + 1
     If n < 3 Then
        MsgBox "没有这个用户,继续登录!", vbOKOnly + vbExclamation, "信息提示"
        Text1(0).Text = ""
        Text1(1).Text = ""
        Text1(0).SetFocus
     Else
        MsgBox "已经登录失败三次,退出系统!", vbOKOnly + vbExclamation, "信息提示"
        mrc.Close
        Unload Me
     End If
    Else
        userlevel = Trim(mrc.Fields("级别"))
        mrc.Close
        Unload Me
        menu.Show
 End If
End Sub


Private Sub Command2_Click()
    Unload Me
End Sub


Private Sub Text1_KeyPress(Index As Integer, KeyAscii As Integer)
    Call endata(KeyAscii)
End Sub

⌨️ 快捷键说明

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