📄 bmxx.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form bmxx
Caption = "部门信息"
ClientHeight = 3375
ClientLeft = 60
ClientTop = 345
ClientWidth = 4965
LinkTopic = "Form1"
ScaleHeight = 3375
ScaleWidth = 4965
StartUpPosition = 3 '窗口缺省
Begin VB.Frame Frame1
Caption = "部门信息"
Height = 975
Left = 240
TabIndex = 4
Top = 360
Width = 4455
Begin VB.TextBox Text1
DataField = "部门号"
DataSource = "Adodc1"
Height = 495
Left = 960
TabIndex = 6
Text = "Text1"
Top = 240
Width = 975
End
Begin VB.TextBox Text2
DataField = "部门名称"
DataSource = "Adodc1"
Height = 495
Left = 3000
TabIndex = 5
Text = "Text2"
Top = 240
Width = 1095
End
Begin VB.Label Label1
Caption = "部门号"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 120
TabIndex = 8
Top = 360
Width = 735
End
Begin VB.Label Label2
Caption = "部门名称"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 2400
TabIndex = 7
Top = 240
Width = 495
End
End
Begin VB.CommandButton Command8
Caption = "关闭"
Height = 495
Left = 2760
TabIndex = 3
Top = 1560
Width = 615
End
Begin VB.CommandButton Command7
Caption = "更新"
Height = 495
Left = 2160
TabIndex = 2
Top = 1560
Width = 615
End
Begin VB.CommandButton Command6
Caption = "删除"
Height = 495
Left = 1560
TabIndex = 1
Top = 1560
Width = 615
End
Begin VB.CommandButton Command5
Caption = "添加"
Height = 495
Left = 960
TabIndex = 0
Top = 1560
Width = 615
End
Begin MSAdodcLib.Adodc Adodc1
Height = 615
Left = 240
Top = 2400
Width = 4215
_ExtentX = 7435
_ExtentY = 1085
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 2
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 3
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "DSN=工资管理系统"
OLEDBString = ""
OLEDBFile = ""
DataSourceName = "工资管理系统"
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "部门信息"
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
End
Attribute VB_Name = "bmxx"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command5_Click()
Adodc1.Recordset.AddNew
Text1.SetFocus
End Sub
Private Sub Command6_Click()
If MsgBox("确信要删除吗", vbYesNo, "提示") = vbYes Then
Adodc1.Recordset.Delete
Adodc1.Recordset.MoveNext
If Adodc1.Recordset.EOF Then
Adodc1.Recordset.MoveFirst
End If
End If
End Sub
Private Sub Command7_Click()
Adodc1.Recordset.Update
End Sub
Private Sub Command8_Click()
Me.Hide
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -