📄 kjchj.frm
字号:
VERSION 5.00
Object = "{00028C01-0000-0000-0000-000000000046}#1.0#0"; "DBGRID32.OCX"
Begin VB.Form kjchj
BackColor = &H00800000&
Caption = "会计成绩表"
ClientHeight = 6315
ClientLeft = 60
ClientTop = 345
ClientWidth = 9330
LinkTopic = "Form1"
MaxButton = 0 'False
MDIChild = -1 'True
ScaleHeight = 6315
ScaleWidth = 9330
Begin VB.CommandButton Command2
Caption = "删除"
Height = 375
Left = 2400
TabIndex = 7
Top = 5760
Width = 855
End
Begin VB.CommandButton sortCommand
Caption = "排序"
Height = 375
Left = 7680
Style = 1 'Graphical
TabIndex = 6
Top = 5760
Width = 855
End
Begin VB.CommandButton Command5
Caption = "添加"
Height = 375
Left = 1080
TabIndex = 5
Top = 5760
Width = 855
End
Begin VB.CommandButton Command4
Caption = "修改"
Height = 375
Left = 3720
TabIndex = 4
Top = 5760
Width = 855
End
Begin VB.CommandButton Command1
Caption = "查找"
Height = 375
Left = 5040
TabIndex = 3
Top = 5760
Width = 855
End
Begin VB.CommandButton Command3
Caption = "检索"
Height = 375
Left = 6360
Style = 1 'Graphical
TabIndex = 2
Top = 5760
Width = 855
End
Begin VB.Data Data1
Caption = "Data1"
Connect = "Access"
DatabaseName = "D:\vb\学生档案管理系统.mdb"
DefaultCursorType= 0 '缺省游标
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 345
Left = 480
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = "会计成绩表"
Top = 360
Visible = 0 'False
Width = 1140
End
Begin MSDBGrid.DBGrid DBGrid1
Bindings = "kjchj.frx":0000
Height = 4695
Left = 15
OleObjectBlob = "kjchj.frx":0014
TabIndex = 0
Top = 960
Width = 9300
End
Begin VB.Label Label1
AutoSize = -1 'True
BackColor = &H00800000&
Caption = "会计成绩表"
BeginProperty Font
Name = "隶书"
Size = 24
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFC0C0&
Height = 495
Left = 3480
TabIndex = 1
Top = 240
Width = 2400
End
End
Attribute VB_Name = "kjchj"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
chzhcht.Text1.Text = ""
chzhcht.Text2.Text = ""
chzhcht.Command1.Visible = False
chzhcht.Command2.Visible = False
chzhcht.Command3.Visible = False
chzhcht.Command7.Visible = False
chzhcht.Command8.Visible = False
chzhcht.Command9.Visible = False
chzhcht.Command4.Visible = True
chzhcht.Command5.Visible = True
chzhcht.Command6.Visible = True
chzhcht.Show
End Sub
Private Sub Command2_Click()
YesNo = MsgBox("真的要删除吗?", vbYesNo + vbQuestion + vbDefaultButton2)
If YesNo <> vbYes Then
Exit Sub
End If
If Data1.Recordset.RecordCount > 0 Then
Data1.Recordset.Delete
Data1.Recordset.MovePrevious
End If
End Sub
Private Sub Command3_Click()
kjcx.Show
End Sub
Private Sub Command4_Click()
jsjtj.Label11.Caption = "请调整要修改的信息"
jsjtj.Command1.Visible = False
jsjtj.Command3.Visible = False
jsjtj.Command5.Visible = False
jsjtj.Label4.Visible = False
jsjtj.Label5.Visible = False
jsjtj.Label6.Visible = False
jsjtj.Label7.Visible = False
jsjtj.Label8.Visible = False
jsjtj.Label9.Visible = False
jsjtj.Label10.Visible = False
jsjtj.Text1.Text = kjchj.Data1.Recordset.Fields("学号")
jsjtj.Text2.Text = kjchj.Data1.Recordset.Fields("姓名")
jsjtj.Text3.Text = kjchj.Data1.Recordset.Fields("大学英语")
jsjtj.Text4.Text = kjchj.Data1.Recordset.Fields("专业英语")
jsjtj.Text5.Text = kjchj.Data1.Recordset.Fields("高等数学")
jsjtj.Text6.Text = kjchj.Data1.Recordset.Fields("会计学原理")
jsjtj.Text7.Text = kjchj.Data1.Recordset.Fields("成本会计")
jsjtj.Text8.Text = kjchj.Data1.Recordset.Fields("管理会计")
jsjtj.Text9.Text = kjchj.Data1.Recordset.Fields("财务分析")
jsjtj.Text10.Text = kjchj.Data1.Recordset.Fields("国际金融")
jsjtj.Show
End Sub
Private Sub Command5_Click()
jsjtj.Show
jsjtj.Command1.Visible = False
jsjtj.Command3.Visible = False
jsjtj.Command4.Visible = False
jsjtj.Label4.Visible = False
jsjtj.Label5.Visible = False
jsjtj.Label6.Visible = False
jsjtj.Label7.Visible = False
jsjtj.Label8.Visible = False
jsjtj.Label9.Visible = False
jsjtj.Label10.Visible = False
End Sub
Private Sub sortCommand_Click()
kjpx.Show
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -