📄 frmuseredit.frm
字号:
VERSION 5.00
Begin VB.Form frmUserEdit
Caption = "添加"
ClientHeight = 2550
ClientLeft = 60
ClientTop = 450
ClientWidth = 4200
LinkTopic = "Form1"
ScaleHeight = 2550
ScaleWidth = 4200
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command1
Caption = "确定"
Height = 495
Left = 1440
TabIndex = 4
Top = 1800
Width = 1215
End
Begin VB.TextBox txtPass
Height = 375
Left = 1080
TabIndex = 1
Top = 1200
Width = 2535
End
Begin VB.TextBox txtName
Height = 375
Left = 1080
TabIndex = 0
Top = 480
Width = 2535
End
Begin VB.Label Label2
Caption = "密码:"
Height = 495
Left = 480
TabIndex = 3
Top = 1200
Width = 615
End
Begin VB.Label Label1
Caption = "用户名:"
Height = 495
Left = 360
TabIndex = 2
Top = 480
Width = 735
End
End
Attribute VB_Name = "frmUserEdit"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public Addnew As Boolean
Private Sub Command1_Click()
If Addnew Then
With frmUser.adoUser.Recordset
.Addnew
.Fields(0) = txtName.Text
.Fields(1) = txtPass.Text
.Update
End With
Else
With frmUser.adoUser.Recordset
.Fields(0) = txtName.Text
.Fields(1) = txtPass.Text
.Update
End With
End If
Me.Visible = False
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -