📄 frmmoney.frm
字号:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Begin VB.Form frmMoney
Caption = "交费情况统计"
ClientHeight = 4380
ClientLeft = 3240
ClientTop = 3225
ClientWidth = 8085
LinkTopic = "Form3"
ScaleHeight = 4380
ScaleWidth = 8085
Begin VB.ComboBox Combo1
Height = 300
Left = 3000
TabIndex = 2
Text = "交费情况"
Top = 240
Width = 1935
End
Begin VB.Data Data2
Caption = "Data2"
Connect = "Access"
DatabaseName = ""
DefaultCursorType= 0 '缺省游标
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 345
Left = 6000
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = ""
Top = 3840
Visible = 0 'False
Width = 1140
End
Begin VB.Data Data1
Caption = "Data1"
Connect = "Access"
DatabaseName = ""
DefaultCursorType= 0 '缺省游标
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 345
Left = 960
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = ""
Top = 3840
Visible = 0 'False
Width = 1140
End
Begin VB.CommandButton Command1
Caption = "返回"
Height = 495
Left = 6000
TabIndex = 1
Top = 120
Width = 1215
End
Begin MSFlexGridLib.MSFlexGrid MSFlexGrid1
Bindings = "frmMoney.frx":0000
Height = 2895
Left = 240
TabIndex = 0
Top = 840
Width = 7575
_ExtentX = 13361
_ExtentY = 5106
_Version = 393216
AllowUserResizing= 3
End
Begin VB.Label Label1
Caption = "请选择"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 2040
TabIndex = 3
Top = 240
Width = 735
End
End
Attribute VB_Name = "frmMoney"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Combo1_Click()
If Trim(Combo1) <> "全部" Then
Data2.Recordset.MoveFirst
Data2.Recordset.FindFirst "money like " & "'" & Trim(Combo1) & "'"
Data1.RecordSource = "select id as 用户代码,name as 姓名,about as 备注,address as 住址,tel as 电话,bank as 开户行,bankid as 帐号,date as 登记日期 from 用户表 where about = '" & Data2.Recordset.Money & " '"
Data1.Refresh
Else
Data1.RecordSource = "select id as 用户代码,name as 姓名,about as 备注,address as 住址,tel as 电话,bank as 开户行,bankid as 帐号,date as 登记日期 from 用户表"
Data1.Refresh
End If
End Sub
Private Sub Command1_Click()
Unload Me
End Sub
Private Sub Form_Activate()
Combo1.Clear
Combo1.AddItem "交费情况"
Combo1.Text = "交费情况"
Data2.Recordset.MoveFirst
Do While Not Data2.Recordset.EOF
Combo1.AddItem Data2.Recordset.Money
Data2.Recordset.MoveNext
Loop
Data1.RecordSource = "select id as 用户代码,name as 姓名,about as 备注,address as 住址,tel as 电话,bank as 开户行,bankid as 帐号,date as 登记日期 from 用户表"
Data1.Refresh
End Sub
Private Sub Form_Load()
Data1.DatabaseName = App.Path + "\水电费管理系统数据库.mdb"
Data1.RecordSource = "用户表"
Data2.DatabaseName = App.Path + "\水电费管理系统数据库.mdb"
Data2.RecordSource = "交费情况表"
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -