- 1、本文档共47页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
家庭财务管理系统课程设计的原代码.
1、frm_borrowgo.frm
Dim Mydb As New ADODB.Recordset
Dim Mydb1 As New ADODB.Recordset
Dim Str_text As String
Dim strflag As String
Private Sub cmd_add_Click()
txt_man.Locked = False
txt_way.Locked = False
txt_money.Locked = False
Combo1.Locked = False
Check1.Enabled = True
DTPicker1.Enabled = True
txt_man.Text =
txt_way.Text =
txt_money.Text =
Combo1.Text =
strflag = 添加
Cmdsave.Enabled = True
End Sub
Private Sub cmd_close_Click()
Unload Me
End Sub
Private Sub cmd_del_Click()
Dim A As Boolean
A = MsgBox(是否真的要删除这条记录?, vbOKCancel + 32 + 256, 删除)
If A = True Then
ExeCutesql delete from 借出 where 得款人= txt_man.Text , Str_text
MsgBox 记录已删除!, , 删除
If Mydb.RecordCount 0 Then
Mydb.MoveNext
If Mydb.EOF Then Mydb.MoveLast
Call Db
Call Bangding
Label7.Caption = Mydb.RecordCount
End If
End If
End Sub
Private Sub cmd_edit_Click()
On Error Resume Next
Dim A As Boolean
txt_man.Locked = False
txt_way.Locked = False
txt_money.Locked = False
Combo1.Locked = False
Check1.Enabled = True
DTPicker1.Enabled = True
strflag = 修改
Cmdsave.Enabled = True
End Sub
Private Sub Cmdsave_Click()
On Error Resume Next
Dim A As Boolean
If strflag = 添加 Then
A = MsgBox(是否添加前记录?, vbYesNo + 32, 添加记录)
If A = True Then
ExeCutesql insert into 借出 values( txt_man.Text , txt_money.Text , Combo1.Text , DTPicker1.Value , txt_way.Text , Check1.Value ), Str_text
MsgBox 数据已经保存!, vbOKOnly + 64, 成功
Call Db
Label7.Caption = Mydb.RecordCount
End If
ElseIf strflag = 修改 Then
A = MsgBox(是否修改前记录?, vbYesNo + 32, 添加记录)
If A = True Then
Mydb.Update
Mydb.Requery
Call Db
MsgBox 数据修改成功!, vbOKOnly + 64, 成功
End If
End If
Cmdsave.Enabled = F
文档评论(0)