?? 添加用戶.frm
字號(hào):
VERSION 5.00
Begin VB.Form 添加用戶
Caption = "添加用戶"
ClientHeight = 3720
ClientLeft = 5265
ClientTop = 3315
ClientWidth = 4980
LinkTopic = "Form1"
ScaleHeight = 3720
ScaleWidth = 4980
Begin VB.TextBox Text3
Height = 375
IMEMode = 3 'DISABLE
Left = 2160
PasswordChar = "*"
TabIndex = 7
Top = 1800
Width = 2295
End
Begin VB.TextBox Text2
Height = 375
IMEMode = 3 'DISABLE
Left = 2160
PasswordChar = "*"
TabIndex = 6
Top = 1080
Width = 2295
End
Begin VB.TextBox Text1
Height = 375
Left = 2160
TabIndex = 5
Top = 360
Width = 2295
End
Begin VB.Data Data1
Caption = "Data1"
Connect = "Access"
DatabaseName = "D:\圖書(shū)管理系統(tǒng)\圖書(shū)館管理信息系統(tǒng).mdb"
DefaultCursorType= 0 '缺省游標(biāo)
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 285
Left = 1680
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = "Username"
Top = 3360
Visible = 0 'False
Width = 2175
End
Begin VB.CommandButton Command2
Caption = "取 消"
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 2880
TabIndex = 4
Top = 2640
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "確 認(rèn)"
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 840
TabIndex = 3
Top = 2640
Width = 1215
End
Begin VB.Label Label3
Caption = "請(qǐng)確認(rèn)密碼:"
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 360
TabIndex = 2
Top = 1800
Width = 1575
End
Begin VB.Label Label2
Caption = "請(qǐng)輸入密碼:"
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 360
TabIndex = 1
Top = 1080
Width = 1455
End
Begin VB.Label Label1
Caption = "用 戶 名:"
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 360
TabIndex = 0
Top = 360
Width = 1335
End
End
Attribute VB_Name = "添加用戶"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If Text1.Text = "" Then
MsgBox "沒(méi)有輸入用戶名", 0 + 48, "警告!"
Else
If Trim(Text2.Text) = "" Then
MsgBox "沒(méi)有輸入密碼", 0 + 48, "警告!"
Else
If Trim(Text2.Text) = Trim(Text3.Text) Then
Data1.Recordset.AddNew
Data1.Recordset("姓名") = Trim(Text1.Text)
Data1.Recordset("密碼") = Trim(Text3.Text)
Data1.Recordset.Update
MsgBox "注冊(cè)成功", 48, "注冊(cè)"
Unload Me
登陸.Show
Else
MsgBox "確認(rèn)密碼有誤", 0 + 48, "警告!"
End If
End If
End If
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -