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

📄 landform1.frm

📁 vb做的银行管理系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form landForm1 
   Caption         =   "登陆"
   ClientHeight    =   3420
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   6720
   LinkTopic       =   "Form1"
   ScaleHeight     =   3420
   ScaleWidth      =   6720
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command2 
      Caption         =   "取消"
      Height          =   375
      Left            =   3600
      TabIndex        =   6
      Top             =   2400
      Width           =   1215
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确定"
      Height          =   375
      Left            =   1920
      TabIndex        =   5
      Top             =   2400
      Width           =   1215
   End
   Begin VB.Frame Frame1 
      Caption         =   "登陆信息"
      Height          =   1815
      Left            =   1440
      TabIndex        =   0
      Top             =   360
      Width           =   3615
      Begin VB.ComboBox Combo1 
         Height          =   300
         ItemData        =   "landForm1.frx":0000
         Left            =   1200
         List            =   "landForm1.frx":000A
         TabIndex        =   7
         Top             =   1080
         Width           =   1935
      End
      Begin VB.TextBox Text2 
         Height          =   270
         IMEMode         =   3  'DISABLE
         Left            =   1200
         PasswordChar    =   "*"
         TabIndex        =   4
         Top             =   720
         Width           =   1935
      End
      Begin VB.TextBox Text1 
         Height          =   270
         Left            =   1200
         TabIndex        =   1
         Top             =   360
         Width           =   1935
      End
      Begin VB.Label Label3 
         Caption         =   "用户权限:"
         Height          =   255
         Left            =   120
         TabIndex        =   8
         Top             =   1080
         Width           =   1095
      End
      Begin VB.Label Label2 
         Caption         =   "密码:"
         Height          =   255
         Left            =   480
         TabIndex        =   3
         Top             =   720
         Width           =   615
      End
      Begin VB.Label Label1 
         Caption         =   "用户卡号:"
         Height          =   255
         Left            =   120
         TabIndex        =   2
         Top             =   360
         Width           =   1215
      End
   End
End
Attribute VB_Name = "landForm1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'响应确定
Private Sub Command1_Click()
Dim str As String
str = "select * from Susers"
Set cn = New adodb.Connection
Dim rst As Recordset
Set rst = New Recordset
cn.ConnectionString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=bank;Data Source=(local)"
cn.Open
rst.Open str, cn, adOpenDynamic, adLockOptimistic
''''''''''''''''''
'核对用户名和密码!
''''''''''''''''''
rst.MoveFirst
Do While Not rst.EOF
If Trim(rst.Fields("ID")) = Text1.Text And Trim(rst.Fields("Spassword")) = Text2.Text And Trim(rst.Fields("Spower")) = Combo1.Text Then
       sid = rst!ID  '给全局变量给值
       power = Combo1.Text
       If power = "common" Then
       MDIFrmMain.mnuAccountNew.Enabled = False
       MDIFrmMain.mnuAccountDelete.Enabled = False
       MDIFrmMain.query.Enabled = False
        End If
        Unload Me
       MDIFrmMain.Show
        rst.Close
        cn.Close
       Exit Sub
        End If
   rst.MoveNext
Loop
MsgBox "输入信息有错,请重新输入!"
rst.Close
cn.Close
End Sub

Private Sub Command2_Click()
Unload Me
End Sub


⌨️ 快捷键说明

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