📄 teach.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form teach
Caption = "教师情况信息"
ClientHeight = 2745
ClientLeft = 1065
ClientTop = 1035
ClientWidth = 10125
LinkTopic = "Form2"
MDIChild = -1 'True
ScaleHeight = 2745
ScaleWidth = 10125
Begin VB.CommandButton Command3
Caption = "修改"
Height = 285
Left = 1680
TabIndex = 13
Top = 2280
Width = 645
End
Begin VB.CommandButton Command2
Caption = "删除"
Height = 285
Left = 870
TabIndex = 12
Top = 2220
Width = 675
End
Begin VB.CommandButton Command1
Caption = "添加"
Height = 285
Left = 0
TabIndex = 11
Top = 2220
Width = 795
End
Begin MSDataGridLib.DataGrid DataGrid1
Bindings = "teach.frx":0000
Height = 2475
Left = 2490
TabIndex = 10
Top = 30
Width = 7605
_ExtentX = 13414
_ExtentY = 4366
_Version = 393216
HeadLines = 1
RowHeight = 15
FormatLocked = -1 'True
BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ColumnCount = 5
BeginProperty Column00
DataField = "教师编号"
Caption = "教师编号"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column01
DataField = "教师姓名"
Caption = "教师姓名"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column02
DataField = "性别"
Caption = "性别"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column03
DataField = "职务"
Caption = "职务"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column04
DataField = "电话"
Caption = "电话"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
SplitCount = 1
BeginProperty Split0
BeginProperty Column00
ColumnWidth = 1500.095
EndProperty
BeginProperty Column01
ColumnWidth = 1500.095
EndProperty
BeginProperty Column02
ColumnWidth = 555.024
EndProperty
BeginProperty Column03
ColumnWidth = 1500.095
EndProperty
BeginProperty Column04
ColumnWidth = 2085.166
EndProperty
EndProperty
End
Begin MSAdodcLib.Adodc Adodc1
Height = 345
Left = 0
Top = 1800
Width = 2415
_ExtentX = 4260
_ExtentY = 609
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= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\其他盘文件\VB\大作业\新建文件夹\user.mdb;Persist Security Info=False"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\其他盘文件\VB\大作业\新建文件夹\user.mdb;Persist Security Info=False"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "教师情况表"
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
_Version = 393216
End
Begin VB.TextBox Text5
DataField = "电话"
DataSource = "Adodc1"
Height = 270
Left = 810
TabIndex = 9
Text = "Text5"
Top = 1470
Width = 1335
End
Begin VB.TextBox Text4
DataField = "职务"
DataSource = "Adodc1"
Height = 285
Left = 810
TabIndex = 8
Text = "Text4"
Top = 1101
Width = 1335
End
Begin VB.TextBox Text3
DataField = "性别"
DataSource = "Adodc1"
Height = 285
Left = 810
TabIndex = 7
Text = "Text3"
Top = 734
Width = 1335
End
Begin VB.TextBox Text2
DataField = "教师姓名"
DataSource = "Adodc1"
Height = 270
Left = 810
TabIndex = 6
Text = "Text2"
Top = 382
Width = 1335
End
Begin VB.TextBox Text1
DataField = "教师编号"
DataSource = "Adodc1"
Height = 270
Left = 810
TabIndex = 5
Text = "Text1"
Top = 30
Width = 1335
End
Begin VB.Label Label5
AutoSize = -1 'True
Caption = "电话"
Height = 180
Left = 330
TabIndex = 4
Top = 1530
Width = 360
End
Begin VB.Label Label4
AutoSize = -1 'True
Caption = "职务"
Height = 180
Left = 330
TabIndex = 3
Top = 1155
Width = 360
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "性别"
Height = 180
Left = 360
TabIndex = 2
Top = 780
Width = 360
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "教师姓名"
Height = 180
Left = 0
TabIndex = 1
Top = 405
Width = 720
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "教师编号"
Height = 180
Left = 0
TabIndex = 0
Top = 30
Width = 720
End
End
Attribute VB_Name = "teach"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
addteacher.Show
End Sub
Private Sub Command2_Click()
Adodc1.Recordset.Delete
If Adodc1.Recordset.EOF = True Then
Adodc1.Recordset.MovePrevious
ElseIf Adodc1.Recordset.BOF = True Then
Adodc1.Recordset.MoveNext
End If
Adodc1.Recordset.Update
End Sub
Private Sub Command3_Click()
Adodc1.Recordset.Update
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -