?? main_cxtj_rkcx.frm
字號:
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ColumnCount = 14
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
BeginProperty Column02
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 Column03
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 Column04
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 Column05
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 Column06
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 Column07
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 Column08
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 Column09
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 Column10
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 Column11
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 Column12
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 Column13
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
ColumnWidth = 810.142
EndProperty
BeginProperty Column01
ColumnWidth = 1484.787
EndProperty
BeginProperty Column02
ColumnWidth = 645.165
EndProperty
BeginProperty Column03
ColumnWidth = 840.189
EndProperty
BeginProperty Column04
ColumnWidth = 510.236
EndProperty
BeginProperty Column05
ColumnWidth = 524.976
EndProperty
BeginProperty Column06
ColumnWidth = 780.095
EndProperty
BeginProperty Column07
ColumnWidth = 734.74
EndProperty
BeginProperty Column08
ColumnWidth = 540.284
EndProperty
BeginProperty Column09
ColumnWidth = 1124.787
EndProperty
BeginProperty Column10
ColumnWidth = 659.906
EndProperty
BeginProperty Column11
ColumnWidth = 645.165
EndProperty
BeginProperty Column12
ColumnWidth = 1124.787
EndProperty
BeginProperty Column13
ColumnWidth = 1574.929
EndProperty
EndProperty
End
End
Attribute VB_Name = "main_cxtj_rkcx"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Activate()
'向combo1中添加查詢項目列表
Combo1.AddItem ("商品編號"): Combo1.AddItem ("商品名稱")
Combo1.AddItem ("供應商"): Combo1.AddItem ("票號")
Combo1.ListIndex = 1
'匯總記錄、數量、金額
Adodc2.RecordSource = "select count(*)as 品種,sum(數量)as 數量1,sum(金額)as 金額1 from rkd"
Adodc2.Refresh
If Adodc2.Recordset.Fields(0) <> "" Then Labpz.Caption = Adodc2.Recordset.Fields(0) Else Labpz.Caption = 0
If Adodc2.Recordset.Fields(1) <> "" Then Labsl.Caption = Adodc2.Recordset.Fields(1) Else Labsl.Caption = 0
If Adodc2.Recordset.Fields(2) <> "" Then Labje.Caption = Format(Adodc2.Recordset.Fields(2), "0.00") Else Labje.Caption = "0.00"
Me.Caption = Me.Caption & " 操作員: " & frm_main.St1.Panels(3).Text
DTP1.Value = Date - 30: DTP2.Value = Date '設置日期
End Sub
Private Sub Form_Unload(Cancel As Integer)
frm_main.Enabled = True
End Sub
Private Sub Comfind_Click() '查詢統計入庫商品信息
If Check1(0).Value = 0 And Check1(1).Value = 1 Then
Adodc1.RecordSource = "select * from rkd where (rkd." & Combo1.Text & " like + '" + Text1.Text + "'+'%')"
Adodc1.Refresh
Adodc2.RecordSource = "select count(*)as pz,sum(數量)as 數量1,sum(金額)as 金額1 from rkd where (rkd." & Combo1.Text & " like + '" + Text1.Text + "'+'%')"
Adodc2.Refresh
End If
If Check1(0).Value = 1 And Check1(1).Value = 0 Then
Adodc1.RecordSource = "select * from rkd where 日期 between '" + Str(DTP1.Value) + "'AND '" + Str(DTP2.Value) + "'"
Adodc1.Refresh
Adodc2.RecordSource = "select count(*)as pz,sum(數量)as 數量1,sum(金額)as 金額1 from rkd where 日期 between '" + Str(DTP1.Value) + "'AND '" + Str(DTP2.Value) + "'"
Adodc2.Refresh
End If
If Check1(0).Value = 1 And Check1(1).Value = 1 Then
Adodc1.RecordSource = "select * from rkd where (rkd." & Combo1.Text & " like + '" + Text1.Text + "'+'%'and 日期 between '" + Str(DTP1.Value) + "'AND '" + Str(DTP2.Value) + "')"
Adodc1.Refresh
Adodc2.RecordSource = "select count(*)as pz,sum(數量)as 數量1,sum(金額)as 金額1 from rkd where (rkd." & Combo1.Text & " like + '" + Text1.Text + "'+'%'and 日期 between '" + Str(DTP1.Value) + "'AND '" + Str(DTP2.Value) + "')"
Adodc2.Refresh
End If
If Adodc2.Recordset.Fields(0) <> "" Then Labpz.Caption = Adodc2.Recordset.Fields(0) Else Labpz.Caption = 0
If Adodc2.Recordset.Fields(1) <> "" Then Labsl.Caption = Adodc2.Recordset.Fields(1) Else Labsl.Caption = 0
If Adodc2.Recordset.Fields(2) <> "" Then Labje.Caption = Format(Adodc2.Recordset.Fields(2), "0.00") Else Labje.Caption = "0.00"
End Sub
Private Sub Comend_Click()
frm_main.Enabled = True
Unload Me
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -