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

📄 frmglygl.frm

📁 数据库设计sql语言开发
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{F0D2F211-CCB0-11D0-A316-00AA00688B10}#1.0#0"; "MSDATLST.OCX"
Object = "{F6B9D3BC-3953-4A68-AD1A-BD05206D76A9}#1.0#0"; "hmButton.ocx"
Begin VB.Form FrmGLYGL 
   Caption         =   "管理员信息管理"
   ClientHeight    =   5595
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   7710
   LinkTopic       =   "Form1"
   ScaleHeight     =   5595
   ScaleWidth      =   7710
   StartUpPosition =   3  '窗口缺省
   Begin MSAdodcLib.Adodc Adodc3 
      Height          =   375
      Left            =   2760
      Top             =   840
      Visible         =   0   'False
      Width           =   2415
      _ExtentX        =   4260
      _ExtentY        =   661
      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.4.0;Data Source=E:\SQL数据库设计\data\db.mdb;Persist Security Info=False"
      OLEDBString     =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\SQL数据库设计\data\db.mdb;Persist Security Info=False"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "select * from 管理员表"
      Caption         =   "Adodc3"
      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 MSAdodcLib.Adodc Adodc2 
      Height          =   495
      Left            =   2160
      Top             =   120
      Visible         =   0   'False
      Width           =   1815
      _ExtentX        =   3201
      _ExtentY        =   873
      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.4.0;Data Source=E:\SQL数据库设计\data\db.mdb;Persist Security Info=False"
      OLEDBString     =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\SQL数据库设计\data\db.mdb;Persist Security Info=False"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "select * from 管理员表"
      Caption         =   "Adodc2"
      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 MSAdodcLib.Adodc Adodc1 
      Height          =   495
      Left            =   4680
      Top             =   240
      Visible         =   0   'False
      Width           =   1935
      _ExtentX        =   3413
      _ExtentY        =   873
      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.4.0;Data Source=E:\SQL数据库设计\data\db.mdb;Persist Security Info=False"
      OLEDBString     =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\SQL数据库设计\data\db.mdb;Persist Security Info=False"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "select * from 管理员表"
      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 黑马按钮控件.dcButton dcButton3 
      Height          =   495
      Left            =   6000
      TabIndex        =   12
      Top             =   3840
      Width           =   1095
      _ExtentX        =   1931
      _ExtentY        =   873
      BackColor       =   14742518
      ButtonStyle     =   8
      Caption         =   "删除"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
   End
   Begin 黑马按钮控件.dcButton dcButton2 
      Height          =   495
      Left            =   4560
      TabIndex        =   11
      Top             =   3840
      Width           =   1095
      _ExtentX        =   1931
      _ExtentY        =   873
      BackColor       =   14742518
      ButtonStyle     =   8
      Caption         =   "修改"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
   End
   Begin 黑马按钮控件.dcButton dcButton1 
      Height          =   495
      Left            =   3240
      TabIndex        =   10
      Top             =   3840
      Width           =   1095
      _ExtentX        =   1931
      _ExtentY        =   873
      BackColor       =   14742518
      ButtonStyle     =   8
      Caption         =   "添加"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
   End
   Begin VB.TextBox Text1 
      DataSource      =   "Adodc1"
      Height          =   375
      IMEMode         =   3  'DISABLE
      Index           =   3
      Left            =   4440
      PasswordChar    =   "*"
      TabIndex        =   9
      Top             =   2400
      Width           =   2535
   End
   Begin VB.TextBox Text1 
      DataField       =   "权限"
      DataSource      =   "Adodc1"
      Height          =   375
      Index           =   2
      Left            =   4440
      TabIndex        =   8
      Top             =   2880
      Width           =   2535
   End
   Begin VB.TextBox Text1 
      DataField       =   "管理员密码"
      DataSource      =   "Adodc1"
      Height          =   375
      Index           =   1
      Left            =   4440
      TabIndex        =   7
      Top             =   1920
      Width           =   2535
   End
   Begin VB.TextBox Text1 
      DataField       =   "管理员名称"
      DataSource      =   "Adodc1"
      Height          =   375
      Index           =   0
      Left            =   4440
      TabIndex        =   6
      Top             =   1440
      Width           =   2535
   End
   Begin MSDataListLib.DataList DataList1 
      Bindings        =   "FrmGLYGL.frx":0000
      Height          =   4470
      Left            =   360
      TabIndex        =   0
      Top             =   840
      Width           =   2175
      _ExtentX        =   3836
      _ExtentY        =   7885
      _Version        =   393216
      ListField       =   "管理员名称"
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      Caption         =   "*管理员权限:"
      Height          =   180
      Index           =   3
      Left            =   3120
      TabIndex        =   5
      Top             =   3000
      Width           =   1170
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      Caption         =   "*密码确定:"
      Height          =   180
      Index           =   2
      Left            =   3300
      TabIndex        =   4
      Top             =   2520
      Width           =   990
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      Caption         =   "*管理员密码:"
      Height          =   180
      Index           =   1
      Left            =   3120
      TabIndex        =   3
      Top             =   2040
      Width           =   1170
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      Caption         =   "*管理员名称:"
      Height          =   180
      Index           =   0
      Left            =   3120
      TabIndex        =   2
      Top             =   1560
      Width           =   1170
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "管理员名"
      Height          =   180
      Left            =   360
      TabIndex        =   1
      Top             =   480
      Width           =   720
   End
End
Attribute VB_Name = "FrmGLYGL"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub DataList1_Click()
Adodc1.RecordSource = "select * from 管理员表 where 管理员名称='" & DataList1.BoundText & "'"
Adodc1.Refresh

End Sub

Private Sub dcButton1_Click()
If dcButton1.Caption = "添加" Then
dcButton2.Enabled = False
dcButton3.Enabled = False
dcButton1.Caption = "保存"
Exit Sub
Else
If dcButton1.Caption = "保存" Then
Dim i As Integer
Adodc3.RecordSource = "select * from 管理员表"
Adodc3.Refresh
Adodc3.Recordset.AddNew
For i = 0 To 2
If Text1(i).Text <> "" Then
Adodc3.Recordset.Fields(i) = Trim(Text1(i).Text)
End If
Next i
Adodc3.Recordset.Update
MsgBox "成功!"
Adodc2.Refresh
dcButton2.Enabled = True
dcButton3.Enabled = True
dcButton1.Caption = "添加"
End If
End If
End Sub

Private Sub dcButton2_Click()
Dim temp As Integer
temp = MsgBox("确定要修改此记录吗?", 1 + 48, "提示")
If temp = 1 Then
Adodc1.Recordset.MoveNext
MsgBox "修改成功!", 0 + 48, "提示"
Adodc1.Refresh
Adodc2.Refresh
End If


End Sub

Private Sub dcButton3_Click()
Dim temp As Integer
temp = MsgBox("确定要删除此记录吗?", 1 + 48, "提示")
If temp = 1 Then
Adodc1.Recordset.Delete
Adodc1.Recordset.Update
MsgBox "删除成功!", 0 + 48, "提示"
Adodc2.Refresh
Adodc1.Refresh
End If
End Sub

⌨️ 快捷键说明

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