📄 交费修改.frm
字号:
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 2040
TabIndex = 12
Text = "Text7"
Top = 360
Width = 3615
End
Begin VB.Label Label12
Caption = "元"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 7440
TabIndex = 22
Top = 1080
Width = 255
End
Begin VB.Label Label11
Caption = "本交欠费:"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 4200
TabIndex = 21
Top = 1080
Width = 1095
End
Begin VB.Label Label10
Caption = "元"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 3360
TabIndex = 20
Top = 1080
Width = 375
End
Begin VB.Label Label9
Caption = "实际交费:"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 480
TabIndex = 15
Top = 960
Width = 1215
End
Begin VB.Label Label8
Caption = "元"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 5760
TabIndex = 13
Top = 480
Width = 375
End
Begin VB.Label Label7
Caption = "本学期应交费用:"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 360
TabIndex = 11
Top = 480
Width = 1695
End
End
Begin VB.TextBox Text4
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 5520
TabIndex = 7
Text = "Text4"
Top = 840
Width = 2175
End
Begin VB.TextBox Text3
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 1560
TabIndex = 5
Text = "Text3"
Top = 840
Width = 2175
End
Begin VB.TextBox Text2
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 5520
TabIndex = 3
Text = "Text2"
Top = 360
Width = 2175
End
Begin VB.TextBox Text1
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 1560
TabIndex = 1
Text = "Text1"
Top = 360
Width = 2175
End
Begin VB.Label Label6
Caption = "日期:"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 4560
TabIndex = 9
Top = 1320
Width = 855
End
Begin VB.Label Label5
Caption = "学期:"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 600
TabIndex = 8
Top = 1320
Width = 855
End
Begin VB.Label Label4
Caption = "专业:"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 4560
TabIndex = 6
Top = 840
Width = 855
End
Begin VB.Label Label3
Caption = "姓名:"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 600
TabIndex = 4
Top = 840
Width = 855
End
Begin VB.Label Label2
Caption = "学号:"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 4560
TabIndex = 2
Top = 360
Width = 855
End
Begin VB.Label Label1
Caption = "年级:"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 600
TabIndex = 0
Top = 360
Width = 855
End
End
Attribute VB_Name = "Frm_UpdateStruJF"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If admin = 1 Then
Dim myCon As New ADODB.Connection
Dim myRs As New ADODB.Recordset
Dim NJ, XH, XM, ZY, XQ, RQ, BXQYJFY, SJJF, BJQF As String
NJ = Text1.Text
XH = Text2.Text
XM = Text3.Text
ZY = Text4.Text
XQ = DTPicker1.Value
RQ = DTPicker2.Value
BXQYJFY = Text7.Text
SJJF = Text8.Text
BJQF = Text9.Text
If Trim(NJ) = "" Or Trim(XH) = "" Or Trim(XM) = "" Or Trim(ZY) = "" Or Trim(XQ) = "" Or Trim(RQ) = "" Or Trim(BXQYJFY) = "" Or Trim(SJJF) = "" Or Trim(BJQF) = "" Then
MsgBox "请填写要修改学生档案资料的内容!"
Exit Sub
End If
myCon.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=信息.mdb;"
myRs.Open "select * from 交费表 where 年级='" & Text1.Text & "'", myCon, 3, 2
'myRs!年级 = Text2.Text
myRs!学号 = Text2.Text
myRs!姓名 = Text3.Text
myRs!专业 = Text4.Text
myRs!学期 = DTPicker1.Value
myRs!日期 = DTPicker2.Value
myRs!本学期应交费 = Text7.Text
myRs!实际交费 = Text8.Text
myRs!本交欠费 = Text9.Text
myRs.Update
myRs.Close
myCon.Close
MsgBox "您确定要修改吗?", vbYesNo, "提示"
Frm_UpdateStruJF.Adodc1.Refresh
Frm_UpdateStruJF.DataGrid1.Refresh
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
'DTPicker1.Text = ""
'DTPicker1.Text = ""
Text7.Text = ""
Text8.Text = ""
Text9.Text = ""
Else
MsgBox "对不起,您没有这个权限!", vbOKOnly + vbExclamation, "提示"
End If
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Command3_Click()
Unload Me
Frm_FindStruJF.Show 1
End Sub
Private Sub DataGrid1_Click()
Frm_UpdateStruJF.Adodc1.RecordSource = "select * from 交费表 where 年级 = '" & Trim(DataGrid1.Row) & "'"
Text1.Text = Frm_UpdateStruJF.Adodc1.Recordset.Fields("年级")
Text2.Text = Frm_UpdateStruJF.Adodc1.Recordset.Fields("学号")
Text3.Text = Frm_UpdateStruJF.Adodc1.Recordset.Fields("姓名")
Text4.Text = Frm_UpdateStruJF.Adodc1.Recordset.Fields("专业")
'Text5.Text = Frm_UpdateStruJF.Adodc1.Recordset.Fields("学期")
'Text6.Text = Frm_UpdateStruJF.Adodc1.Recordset.Fields("日期")
Text7.Text = Frm_UpdateStruJF.Adodc1.Recordset.Fields("本学期应交费用")
Text8.Text = Frm_UpdateStruJF.Adodc1.Recordset.Fields("实际交费")
Text9.Text = Frm_UpdateStruJF.Adodc1.Recordset.Fields("本交欠费")
End Sub
Private Sub Form_Activate()
Frm_FindStruJF.Adodc1.RecordSource = strTiaoJian
Frm_FindStruJF.Adodc1.Refresh
Set DataGrid1.DataSource = Frm_FindStruJF.Adodc1
End Sub
Private Sub Form_Load()
Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=信息.mdb;Persist Security Info=False"
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
'DTPicker1.Text = ""
'DTPicker2.Text = ""
Text7.Text = ""
Text8.Text = ""
Text9.Text = ""
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -