📄 form5.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 Form5
BackColor = &H00FFC0C0&
Caption = "学生个人信息管理"
ClientHeight = 5640
ClientLeft = 2865
ClientTop = 1875
ClientWidth = 7545
LinkTopic = "Form5"
ScaleHeight = 5640
ScaleWidth = 7545
Begin VB.TextBox Text3
DataField = "studentid"
DataSource = "Adodc1"
Height = 285
Left = 240
TabIndex = 13
Text = "Text3"
Top = 6480
Visible = 0 'False
Width = 375
End
Begin VB.Frame Frame3
BackColor = &H00FFC0C0&
Caption = "操作2"
Height = 2055
Left = 4200
TabIndex = 8
Top = 3240
Width = 3015
Begin VB.CommandButton Command6
BackColor = &H00E0E0E0&
Caption = "口令修改"
Height = 375
Left = 480
Style = 1 'Graphical
TabIndex = 12
Top = 1440
Width = 1935
End
Begin VB.CommandButton Command5
BackColor = &H00E0E0E0&
Caption = "选课信息"
Height = 375
Left = 480
Style = 1 'Graphical
TabIndex = 11
Top = 840
Width = 1935
End
Begin VB.TextBox Text2
Height = 285
Left = 1320
TabIndex = 10
Top = 360
Width = 1215
End
Begin VB.Label Label2
BackColor = &H00FFC0C0&
Caption = "操作的学号"
Height = 255
Left = 240
TabIndex = 9
Top = 360
Width = 1095
End
End
Begin VB.Frame Frame2
BackColor = &H00FFC0C0&
Caption = "操作1"
Height = 2055
Left = 240
TabIndex = 2
Top = 3240
Width = 3495
Begin VB.CommandButton Command4
BackColor = &H00E0E0E0&
Caption = "查询"
Height = 375
Left = 1920
Style = 1 'Graphical
TabIndex = 14
Top = 960
Width = 1335
End
Begin VB.TextBox Text1
Height = 285
Left = 1920
TabIndex = 7
Top = 1650
Width = 1335
End
Begin VB.CommandButton Command3
BackColor = &H00E0E0E0&
Caption = "删除"
Height = 375
Left = 1920
Style = 1 'Graphical
TabIndex = 5
Top = 240
Width = 1335
End
Begin VB.CommandButton Command2
BackColor = &H00E0E0E0&
Caption = "修改"
Height = 375
Left = 240
Style = 1 'Graphical
TabIndex = 4
Top = 960
Width = 1335
End
Begin VB.CommandButton Command1
BackColor = &H00E0E0E0&
Caption = "增加"
Height = 375
Left = 240
Style = 1 'Graphical
TabIndex = 3
Top = 240
Width = 1335
End
Begin VB.Label Label1
BackColor = &H00FFC0C0&
Caption = "删除修改查询的学号"
Height = 255
Left = 120
TabIndex = 6
Top = 1680
Width = 1695
End
End
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 360
Top = 4920
Visible = 0 'False
Width = 1695
_ExtentX = 2990
_ExtentY = 661
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 8
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.3.51;Persist Security Info=False;Data Source=db1.mdb"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=db1.mdb"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from student"
Caption = "Adodc1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin VB.Frame Frame1
BackColor = &H00FFC0C0&
Caption = "学生信息"
Height = 3015
Left = 240
TabIndex = 0
Top = 120
Width = 6975
Begin MSDataGridLib.DataGrid DataGrid1
Bindings = "Form5.frx":0000
Height = 2655
Left = 240
TabIndex = 1
Top = 240
Width = 6255
_ExtentX = 11033
_ExtentY = 4683
_Version = 393216
HeadLines = 1
RowHeight = 15
BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ColumnCount = 2
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
SplitCount = 1
BeginProperty Split0
BeginProperty Column00
EndProperty
BeginProperty Column01
EndProperty
EndProperty
End
End
End
Attribute VB_Name = "Form5"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Adodc1.RecordSource = "select * from student"
Adodc1.Refresh
Adodc1.Recordset.MoveLast
Adodc1.Recordset.MoveNext
Adodc1.Recordset.AddNew
DataGrid1.Refresh
End Sub
Private Sub Command2_Click()
If Text1.Text = "" Then
MsgBox "请输入学号"
Exit Sub
End If
Adodc1.RecordSource = "select * from student"
Adodc1.Refresh
Adodc1.Recordset.MoveFirst
Do
If Text1.Text = Text3.Text Then
Exit Do
End If
Adodc1.Recordset.MoveNext
Loop
End Sub
Private Sub Command3_Click()
If Text1.Text = "" Then
MsgBox "请输入学号"
Exit Sub
End If
Adodc1.RecordSource = "select * from student"
Adodc1.Refresh
Adodc1.Recordset.MoveFirst
Do
If Text1.Text = Text3.Text Then
Exit Do
End If
Adodc1.Recordset.MoveNext
Loop
Adodc1.Recordset.Delete
End Sub
Private Sub Command4_Click()
If Text1.Text = "" Then
MsgBox "请输入学号"
Exit Sub
End If
Adodc1.RecordSource = "select * from student"
Adodc1.Refresh
Adodc1.Recordset.MoveFirst
Do
If Text1.Text = Text3.Text Then
Exit Do
End If
Adodc1.Recordset.MoveNext
Loop
End Sub
Private Sub Command5_Click()
If Text2.Text = "" Then
MsgBox "请输入学号"
Exit Sub
End If
Form10.Show
End Sub
Private Sub Command6_Click()
If Text2.Text = "" Then
MsgBox "请输入学号"
Exit Sub
End If
Form9.Show
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -