📄 studentedit.frm
字号:
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H8000000D&
Height = 255
Left = 240
TabIndex = 16
Top = 1080
Width = 2295
End
Begin VB.Label Label7
BackStyle = 0 'Transparent
Caption = "性别(&S):"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H8000000D&
Height = 255
Left = 240
TabIndex = 15
Top = 1920
Width = 2295
End
Begin VB.Label Label8
BackStyle = 0 'Transparent
Caption = "政治面貌(&P):"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H8000000D&
Height = 255
Left = 240
TabIndex = 14
Top = 2760
Width = 2295
End
End
Begin MSComctlLib.ListView ListView1
Height = 5295
Left = 3240
TabIndex = 6
Top = 0
Width = 3135
_ExtentX = 5530
_ExtentY = 9340
View = 3
Arrange = 1
LabelEdit = 1
LabelWrap = -1 'True
HideSelection = 0 'False
AllowReorder = -1 'True
FullRowSelect = -1 'True
GridLines = -1 'True
PictureAlignment= 5
_Version = 393217
Icons = "ImageList1"
SmallIcons = "ImageList1"
ColHdrIcons = "ImageList1"
ForeColor = -2147483640
BackColor = -2147483634
BorderStyle = 1
Appearance = 1
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
NumItems = 4
BeginProperty ColumnHeader(1) {BDD1F052-858B-11D1-B16A-00C0F0283628}
Text = "学号"
Object.Width = 2540
EndProperty
BeginProperty ColumnHeader(2) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 1
Text = "姓名"
Object.Width = 2540
EndProperty
BeginProperty ColumnHeader(3) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 2
Text = "性别"
Object.Width = 2540
EndProperty
BeginProperty ColumnHeader(4) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 3
Text = "政治面貌"
Object.Width = 2540
EndProperty
Picture = "studentedit.frx":0A26
End
Begin VB.PictureBox Picture1
BackColor = &H00FFE09E&
Height = 5295
Left = 0
Picture = "studentedit.frx":1493A
ScaleHeight = 5235
ScaleWidth = 3075
TabIndex = 0
Top = 0
Width = 3135
Begin VB.Label Label10
BackStyle = 0 'Transparent
Caption = "此班级所含的学生数目:"
BeginProperty Font
Name = "宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H8000000D&
Height = 375
Left = 120
TabIndex = 8
Top = 3360
Width = 2535
End
Begin VB.Label Label9
Alignment = 1 'Right Justify
BackStyle = 0 'Transparent
Caption = "Label1"
BeginProperty Font
Name = "宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000C0&
Height = 735
Left = 360
TabIndex = 7
Top = 3600
Width = 2295
End
Begin VB.Shape Shape2
BorderColor = &H0000FF00&
BorderWidth = 2
Height = 15
Left = 120
Top = 1005
Width = 2655
End
Begin VB.Shape Shape1
BorderColor = &H000000FF&
BorderWidth = 2
Height = 15
Left = 120
Top = 960
Width = 2775
End
Begin VB.Label Label5
BackStyle = 0 'Transparent
Caption = "学生名册管理"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
ForeColor = &H00800000&
Height = 375
Index = 1
Left = 1005
TabIndex = 4
Top = 525
Width = 2175
End
Begin VB.Image Image1
Height = 720
Left = 120
Picture = "studentedit.frx":4E99E
Stretch = -1 'True
Top = 120
Width = 720
End
Begin VB.Label Label4
BackStyle = 0 'Transparent
Caption = "您现在正在处理的班级:"
BeginProperty Font
Name = "宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H8000000D&
Height = 375
Left = 120
TabIndex = 3
Top = 2160
Width = 2535
End
Begin VB.Label Label3
Alignment = 1 'Right Justify
BackStyle = 0 'Transparent
Caption = "Label1"
BeginProperty Font
Name = "宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000C0&
Height = 735
Left = 360
TabIndex = 2
Top = 2520
Width = 2295
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "批量输入模式"
BeginProperty Font
Name = "宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000C0&
Height = 375
Left = 240
TabIndex = 1
Top = 1200
Width = 1695
End
Begin VB.Label Label5
BackStyle = 0 'Transparent
Caption = "学生名册管理"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 375
Index = 0
Left = 980
TabIndex = 5
Top = 500
Width = 2535
End
End
End
Attribute VB_Name = "studentedit"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public kk As String
Public nn As Integer
Public num As String
Public nowid As Integer
Dim myindex As Integer
Private Sub Command1_Click()
Unload Me
End Sub
Private Sub Command2_Click()
Dim temp As New ADODB.Recordset
temp.Open "select * from [student] where [stid]='" & Trim(Text1.Text) & "' and [ID]<>" & nowid, main.connect, 3, 2
If temp.RecordCount <> 0 Then
MsgBox "您输入的学号和已存在的学生重复。" & Chr(13) & Chr(10) & "请你查证后,重新输入", vbOKOnly Or vbInformation, "提示"
temp.Close
Set temp = Nothing
Text1.SetFocus
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -