📄 chaxunin.frm
字号:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Begin VB.Form Form9
BorderStyle = 3 'Fixed Dialog
Caption = "入库单查询"
ClientHeight = 6375
ClientLeft = 45
ClientTop = 330
ClientWidth = 10845
LinkTopic = "Form9"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 6375
ScaleWidth = 10845
ShowInTaskbar = 0 'False
StartUpPosition = 3 '窗口缺省
Begin VB.Frame Frame4
Height = 1095
Left = 8160
TabIndex = 22
Top = 1680
Width = 1215
Begin VB.CommandButton Command5
Caption = "导出"
Height = 375
Left = 240
TabIndex = 23
Top = 360
Width = 735
End
End
Begin VB.Data Data3
Caption = "Data3"
Connect = "Access 2000;"
DatabaseName = ""
DefaultCursorType= 0 '缺省游标
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 285
Left = 9000
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = ""
Top = 5610
Visible = 0 'False
Width = 1215
End
Begin VB.Data Data2
Caption = "Data2"
Connect = "Access 2000;"
DatabaseName = ""
DefaultCursorType= 0 '缺省游标
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 285
Left = 9000
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = ""
Top = 5280
Visible = 0 'False
Width = 1215
End
Begin VB.Data Data1
Caption = "Data1"
Connect = "Access 2000;"
DatabaseName = ""
DefaultCursorType= 0 '缺省游标
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 285
Left = 9000
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = ""
Top = 4920
Visible = 0 'False
Width = 1215
End
Begin VB.OptionButton Option2
Caption = "票据查询"
ForeColor = &H00C00000&
Height = 255
Left = 7680
TabIndex = 19
Top = 240
Width = 1335
End
Begin VB.OptionButton Option1
Caption = "时段/单品查询"
ForeColor = &H00C00000&
Height = 255
Left = 5640
TabIndex = 18
Top = 240
Value = -1 'True
Width = 1695
End
Begin VB.Frame Frame3
Height = 1095
Left = 9480
TabIndex = 14
Top = 1680
Width = 1215
Begin VB.CommandButton Command3
Caption = "退出"
Height = 375
Left = 240
TabIndex = 15
Top = 360
Width = 735
End
End
Begin VB.Frame Frame2
Caption = "票据查询"
ForeColor = &H000000FF&
Height = 1095
Left = 120
TabIndex = 11
Top = 1680
Width = 7935
Begin VB.CommandButton Command2
Caption = "查询"
Height = 375
Left = 3960
TabIndex = 13
Top = 420
Width = 615
End
Begin VB.TextBox Text3
Height = 270
Left = 1440
TabIndex = 12
Top = 472
Width = 2415
End
Begin VB.Label Label5
Caption = "编号:"
Height = 255
Left = 360
TabIndex = 21
Top = 480
Width = 735
End
Begin VB.Label Label3
Caption = " 友情提示:票据查询必须准确输写入库单的原始编号!"
ForeColor = &H000080FF&
Height = 375
Left = 4800
TabIndex = 16
Top = 420
Width = 2655
End
End
Begin VB.Frame Frame1
Caption = "时段查询"
ForeColor = &H000000FF&
Height = 1095
Left = 120
TabIndex = 0
Top = 480
Width = 10575
Begin VB.ComboBox Combo3
Height = 300
Left = 8280
TabIndex = 10
Text = "Combo3"
Top = 450
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "查询"
Height = 375
Left = 9600
TabIndex = 9
Top = 420
Width = 735
End
Begin VB.ComboBox Combo2
Height = 300
Left = 6840
TabIndex = 8
Text = "Combo2"
Top = 450
Width = 1335
End
Begin VB.ComboBox Combo1
Height = 300
Left = 5760
TabIndex = 7
Text = "Combo1"
Top = 450
Width = 975
End
Begin VB.CheckBox Check1
Caption = "单品:"
Height = 255
Left = 4800
TabIndex = 6
Top = 480
Width = 855
End
Begin VB.CommandButton Command4
Caption = "今天"
Height = 345
Left = 3960
TabIndex = 5
Top = 435
Width = 615
End
Begin VB.TextBox Text2
Height = 270
Left = 2760
TabIndex = 4
Top = 472
Width = 1095
End
Begin VB.TextBox Text1
Height = 270
Left = 1440
TabIndex = 2
Top = 472
Width = 975
End
Begin VB.Label Label4
Caption = "时段:"
Height = 255
Left = 360
TabIndex = 20
Top = 480
Width = 615
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "至"
Height = 180
Left = 2520
TabIndex = 3
Top = 510
Width = 180
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "从"
Height = 300
Left = 1080
TabIndex = 1
Top = 480
Width = 300
End
End
Begin MSFlexGridLib.MSFlexGrid MSFlexGrid1
Bindings = "ChaxunIn.frx":0000
Height = 3135
Left = 120
TabIndex = 17
Top = 2880
Width = 10575
_ExtentX = 18653
_ExtentY = 5530
_Version = 393216
FixedCols = 0
Enabled = -1 'True
GridLines = 2
AllowUserResizing= 1
End
End
Attribute VB_Name = "Form9"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public rec As Integer
Private Sub Combo1_Click()
Combo2.Clear
If Data2.Recordset.RecordCount > 0 Then
Data2.Recordset.MoveFirst
End If
While Data2.Recordset.EOF = False
If Data2.Recordset.Fields("品牌") = Combo1.Text Then
Combo2.AddItem Data2.Recordset.Fields("产品")
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -