?? frmmodifyresult.frm
字號:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form frmModifyresult
Caption = "修改成績信息"
ClientHeight = 3645
ClientLeft = 45
ClientTop = 345
ClientWidth = 6855
LinkTopic = "Form1"
MDIChild = -1 'True
ScaleHeight = 3645
ScaleWidth = 6855
Begin VB.CommandButton Command3
Caption = "刪除記錄"
Height = 495
Left = 3840
TabIndex = 14
Top = 2520
Width = 1215
End
Begin VB.CommandButton Command2
Caption = "返回"
Height = 495
Left = 5400
TabIndex = 13
Top = 2520
Width = 1335
End
Begin VB.CommandButton Command1
Caption = "修改記錄"
Height = 495
Left = 2280
TabIndex = 12
Top = 2520
Width = 1215
End
Begin VB.ComboBox comboClassno
DataField = "class_No"
DataSource = "Adodc1"
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 312
ItemData = "frmModifyresult.frx":0000
Left = 4800
List = "frmModifyresult.frx":0002
TabIndex = 5
Top = 480
Width = 1332
End
Begin VB.ComboBox comboSID
DataField = "student_ID"
DataSource = "Adodc1"
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 312
ItemData = "frmModifyresult.frx":0004
Left = 1800
List = "frmModifyresult.frx":0006
TabIndex = 4
Top = 960
Width = 1332
End
Begin VB.TextBox txtName
DataField = "student_Name"
DataSource = "Adodc1"
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 372
Left = 4800
TabIndex = 3
Top = 960
Width = 1332
End
Begin VB.TextBox txtResult
DataField = "result"
DataSource = "Adodc1"
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 372
Left = 4800
TabIndex = 2
Top = 1440
Width = 1332
End
Begin VB.ComboBox comboCourse
DataField = "course_Name"
DataSource = "Adodc1"
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 312
ItemData = "frmModifyresult.frx":0008
Left = 1800
List = "frmModifyresult.frx":000A
TabIndex = 1
Top = 1560
Width = 1332
End
Begin VB.ComboBox comboExamtype
DataField = "exam_No"
DataSource = "Adodc1"
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 312
ItemData = "frmModifyresult.frx":000C
Left = 1800
List = "frmModifyresult.frx":000E
TabIndex = 0
Top = 480
Width = 1332
End
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 360
Top = 2520
Width = 1695
_ExtentX = 2990
_ExtentY = 661
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 2
LockType = 3
CommandType = 8
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 3
Appearance = 1
BackColor = 16777215
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "DSN=student"
OLEDBString = ""
OLEDBFile = ""
DataSourceName = "student"
OtherAttributes = ""
UserName = "sa"
Password = "sa"
RecordSource = "select * from result_Info order by exam_No"
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.Label Label1
Caption = "選擇班號:"
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 252
Left = 3360
TabIndex = 11
Top = 480
Width = 1332
End
Begin VB.Label Label2
Caption = "選擇學(xué)號:"
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 252
Left = 480
TabIndex = 10
Top = 960
Width = 1212
End
Begin VB.Label Label3
Caption = "姓名:"
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 3840
TabIndex = 9
Top = 1080
Width = 735
End
Begin VB.Label Label4
Caption = "輸入分?jǐn)?shù):"
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 3360
TabIndex = 8
Top = 1560
Width = 1335
End
Begin VB.Label Label5
Caption = "選擇課程:"
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 252
Left = 480
TabIndex = 7
Top = 1560
Width = 1212
End
Begin VB.Label Label6
Caption = "考試編號:"
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 252
Left = 480
TabIndex = 6
Top = 480
Width = 1212
End
End
Attribute VB_Name = "frmModifyresult"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cancelCommand_Click()
End Sub
Private Sub Command1_Click()
If Not Testtxt(comboExamtype.text) Then
MsgBox "請輸入考試編號!", vbOKOnly + vbExclamation, "警告"
Exit Sub
End If
If Not Testtxt(comboClassno.text) Then
MsgBox "請選擇班號!", vbOKOnly + vbExclamation, "警告"
Exit Sub
End If
If Not Testtxt(comboSID.text) Then
MsgBox "請選擇學(xué)號!", vbOKOnly + vbExclamation, "警告"
Exit Sub
End If
If Not Testtxt(comboCourse.text) Then
MsgBox "請選擇課程!", vbOKOnly + vbExclamation, "警告"
Exit Sub
End If
If Not Testtxt(txtResult.text) Then
MsgBox "請輸入分?jǐn)?shù)!", vbOKOnly + vbExclamation, "警告"
Exit Sub
End If
If Not IsNumeric(txtResult.text) Then
MsgBox "分?jǐn)?shù)請輸入數(shù)字!", vbOKOnly + vbExclamation, "警告"
Exit Sub
End If
With MyFam
.exam_No = Trim(comboExamtype)
.student_ID = Trim(comboSID)
.student_Name = Trim(txtName)
.class_No = Trim(comboClassno)
.course_Name = Trim(comboCourse)
.result = Trim(txtResult)
.Update (CurFam.student_ID)
End With
MsgBox "成績修改成功!", vbOKOnly + vbExclamation, "警告"
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Command3_Click()
Dim TmpId As Integer
If Adodc1.Recordset.BOF = True Then
MsgBox "請選擇記錄"
Exit Sub
End If
TmpId = Adodc1.Recordset.Fields(1)
If MsgBox("是否刪除當(dāng)記錄?", vbYesNo, "確認(rèn)") = vbYes Then
Call MyFam.Delete(TmpId)
End If
Adodc1.Refresh
End Sub
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -