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

📄 frm登录.frm

📁 这是一个啤酒销售系统的软件
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form frm登录 
   Caption         =   "welcome "
   ClientHeight    =   3360
   ClientLeft      =   1110
   ClientTop       =   345
   ClientWidth     =   5520
   LinkTopic       =   "Form2"
   MDIChild        =   -1  'True
   ScaleHeight     =   3360
   ScaleWidth      =   5520
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   330
      Left            =   360
      Top             =   3000
      Visible         =   0   'False
      Width           =   3855
      _ExtentX        =   6800
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   8
      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.3.51;Persist Security Info=False;Data Source=C:\啤酒数据库\BEER.MDB"
      OLEDBString     =   "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=C:\啤酒数据库\BEER.MDB"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   ""
      Caption         =   "Adodc1"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin VB.TextBox Text1 
      Height          =   270
      Left            =   2040
      Locked          =   -1  'True
      TabIndex        =   7
      Top             =   960
      Visible         =   0   'False
      Width           =   1935
   End
   Begin VB.CommandButton C2 
      Caption         =   "退出"
      Height          =   495
      Left            =   3120
      TabIndex        =   3
      Top             =   2280
      Width           =   975
   End
   Begin VB.CommandButton Command1 
      Caption         =   "登录"
      Height          =   495
      Left            =   1200
      TabIndex        =   2
      Top             =   2280
      Width           =   975
   End
   Begin VB.TextBox txtFields 
      Height          =   405
      IMEMode         =   3  'DISABLE
      Index           =   2
      Left            =   2040
      MaxLength       =   10
      PasswordChar    =   "*"
      TabIndex        =   1
      Top             =   1440
      Width           =   1935
   End
   Begin VB.TextBox txtFields 
      Height          =   405
      Index           =   0
      Left            =   2040
      TabIndex        =   0
      Top             =   240
      Width           =   1935
   End
   Begin VB.Label Label1 
      Caption         =   "权限:"
      Height          =   255
      Left            =   1200
      TabIndex        =   6
      Top             =   960
      Visible         =   0   'False
      Width           =   615
   End
   Begin VB.Label lblLabels 
      Caption         =   "密码:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Index           =   2
      Left            =   1080
      TabIndex        =   5
      Top             =   1440
      Width           =   855
   End
   Begin VB.Label lblLabels 
      Caption         =   "帐户:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Index           =   0
      Left            =   1080
      TabIndex        =   4
      Top             =   240
      Width           =   735
   End
End
Attribute VB_Name = "frm登录"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False



Private Sub Command1_Click()
Static i As Integer
Static a As String
If i < 2 Then
zhno = txtFields(0).Text
mima = txtFields(2).Text
tabstring1 = " Select 帐户.权限 "
tabstring2 = " From 帐户 "
tabstring3 = " Where  帐户.帐户号=" & " '" & zhno & "'"
tabstring4 = " And  帐户.密码=" & "'" & mima & "'"
tabstring = tabstring1 & tabstring2 & tabstring3 & tabstring4
frm登录.Adodc1.RecordSource = tabstring
frm登录.Adodc1.Refresh
Set Text1.DataSource = frm登录.Adodc1
Text1.DataField = "权限"
If Text1.Text <> "" Then
qx = Val(Text1.Text)
Form1.Show
Else
a = MsgBox("你输入的用户名与密码不匹配" & Chr(13) & "请重新输入", vbOKOnly, "错误")
txtFields(0).SetFocus
txtFields(0).SelStart = 0
txtFields(0).SelLength = Len(txtFields(0).Text)
txtFields(0).Text = ""
txtFields(2).Text = ""
i = i + 1
End If
Else
a = MsgBox("你的错误次数已经超过最大限制" & Chr(13) & "你无权访问本系统", vbOKOnly, "警告")
End
End If
End Sub


Private Sub c2_Click()
  Unload Me
End Sub


⌨️ 快捷键说明

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