📄 每日报表.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form frmdayreport
Caption = "Form2"
ClientHeight = 6810
ClientLeft = 1800
ClientTop = 1470
ClientWidth = 8625
LinkTopic = "Form2"
MaxButton = 0 'False
ScaleHeight = 6810
ScaleWidth = 8625
Begin VB.CommandButton Command2
Caption = "查询"
Height = 375
Left = 6840
TabIndex = 9
Top = 120
Width = 975
End
Begin VB.CommandButton Command1
Caption = "报表"
Height = 375
Left = 6840
TabIndex = 8
Top = 720
Width = 975
End
Begin VB.ComboBox Combo3
Height = 300
ItemData = "每日报表.frx":0000
Left = 4800
List = "每日报表.frx":0061
TabIndex = 7
Text = "1"
Top = 720
Width = 855
End
Begin VB.ComboBox Combo2
Height = 300
ItemData = "每日报表.frx":00D8
Left = 3000
List = "每日报表.frx":0100
TabIndex = 6
Text = "1"
Top = 720
Width = 855
End
Begin VB.ComboBox Combo1
Height = 300
ItemData = "每日报表.frx":012B
Left = 1200
List = "每日报表.frx":013B
TabIndex = 5
Text = "03"
Top = 720
Width = 855
End
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = 5520
Top = 6240
Visible = 0 'False
Width = 1815
_ExtentX = 3201
_ExtentY = 582
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 8
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=数据库.mdb;Persist Security Info=False"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=数据库.mdb;Persist Security Info=False"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from 客户表 where 离场时间 =000000"
Caption = "Adodc1"
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 MSDataGridLib.DataGrid DataGrid1
Bindings = "每日报表.frx":014F
Height = 4935
Left = 240
TabIndex = 0
Top = 1200
Width = 7695
_ExtentX = 13573
_ExtentY = 8705
_Version = 393216
HeadLines = 1
RowHeight = 15
BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ColumnCount = 2
BeginProperty Column00
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column01
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
SplitCount = 1
BeginProperty Split0
BeginProperty Column00
EndProperty
BeginProperty Column01
EndProperty
EndProperty
End
Begin VB.Label Label5
Caption = "今天的收入是"
Height = 375
Left = 720
TabIndex = 10
Top = 6240
Width = 2535
End
Begin VB.Label Label4
Caption = "日"
Height = 255
Left = 5880
TabIndex = 4
Top = 720
Width = 495
End
Begin VB.Label Label3
Caption = "月"
Height = 255
Left = 3960
TabIndex = 3
Top = 720
Width = 495
End
Begin VB.Label Label2
Caption = "年"
Height = 255
Left = 2160
TabIndex = 2
Top = 720
Width = 495
End
Begin VB.Label Label1
Caption = "请选择"
Height = 375
Left = 360
TabIndex = 1
Top = 720
Width = 975
End
End
Attribute VB_Name = "frmdayreport"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
bu = "Yes"
If Combo1.Text = "" Or Combo2.Text = "" Or Combo3.Text = "" Then
MsgBox "您所输入的数字不全!", , "提示!"
Else
DataEnvironment1.Connection1.Open
cc = Combo1.Text + "-" + Combo2.Text + "-" + Combo3.Text
Call DataEnvironment1.Command5(cc, bu)
Load DataReport5
DataReport5.show
DataReport5.Refresh
DataEnvironment1.Connection1.Close
End If
End Sub
Private Sub Command2_Click()
Dim rdate As String
Dim sum As String
sum = 0
bu = "Yes"
If Combo1.Text = "" Or Combo2.Text = "" Or Combo3.Text = "" Then
MsgBox "您所输入的数字不全!", , "提示!"
Else
rdate = Combo1.Text + "-" + Combo2.Text + "-" + Combo3.Text
Adodc1.RecordSource = "select * from 客户表 where 离场时间 like " + "'" + rdate + "'" + "and 是否结算=" + "'" + bu + "'"
Adodc1.Refresh
Set rs = Adodc1.Recordset
With rs
Do While Not rs.EOF
sum = sum + !实收金额
rs.MoveNext
Loop
End With
Label5.Caption = "今天的收入为:" + Str(sum) + "元"
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -