📄 frmtianjiaguanliyuan.frm
字号:
VERSION 5.00
Begin VB.Form frmtianjiaguanliyuan
BorderStyle = 1 'Fixed Single
Caption = "增加管理员"
ClientHeight = 2010
ClientLeft = 4755
ClientTop = 2865
ClientWidth = 4110
Icon = "frmtianjiaguanliyuan.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2010
ScaleWidth = 4110
Begin VB.CommandButton Command2
Caption = "退出"
Height = 375
Left = 3000
TabIndex = 5
Top = 1440
Width = 735
End
Begin VB.CommandButton Command1
Caption = "确定"
Height = 375
Left = 1920
TabIndex = 4
Top = 1440
Width = 735
End
Begin VB.TextBox Text2
Height = 375
IMEMode = 3 'DISABLE
Left = 1800
PasswordChar = "*"
TabIndex = 3
Top = 960
Width = 2055
End
Begin VB.TextBox Text1
Height = 375
Left = 1800
TabIndex = 1
Top = 240
Width = 2055
End
Begin VB.Label lblmima
Caption = "密码"
Height = 375
Left = 240
TabIndex = 2
Top = 960
Width = 975
End
Begin VB.Label lbltianjia
Caption = "管理员ID"
Height = 375
Left = 240
TabIndex = 0
Top = 240
Width = 975
End
End
Attribute VB_Name = "frmtianjiaguanliyuan"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim str As String
If Text1.Text = Empty Then
MsgBox "你的输入无效或为空"
Else
str = "select * from guanliyuan"
If querydata(str) = True Then
rct.AddNew
rct.Fields("guanliyuan").Value = Text1.Text
rct.Fields("mima").Value = Text2.Text
rct.Update
Else
MsgBox "提出数据失败!"
End If
MsgBox "添加成功!"
Text1.Text = ""
Text2.Text = ""
End If
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -