📄 form20.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form Form20
Caption = "销售状况表"
ClientHeight = 4830
ClientLeft = 60
ClientTop = 345
ClientWidth = 6525
LinkTopic = "Form13"
ScaleHeight = 4830
ScaleWidth = 6525
StartUpPosition = 3 '窗口缺省
Begin MSAdodcLib.Adodc Adodc1
Height = 495
Left = 3720
Top = 2520
Width = 2055
_ExtentX = 3625
_ExtentY = 873
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 2
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "Provider=MSDASQL.1;Persist Security Info=False;Data Source=111;Initial Catalog=D:\my\form\111"
OLEDBString = "Provider=MSDASQL.1;Persist Security Info=False;Data Source=111;Initial Catalog=D:\my\form\111"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "销售列表"
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 VB.TextBox Text7
Height = 495
Left = 4680
TabIndex = 14
Text = "Text7"
Top = 1440
Width = 615
End
Begin VB.TextBox Text6
Height = 495
Left = 4680
TabIndex = 13
Text = "Text6"
Top = 120
Width = 615
End
Begin VB.CommandButton Command3
Caption = "查询"
Height = 495
Left = 5520
TabIndex = 12
Top = 1440
Width = 855
End
Begin VB.CommandButton Command2
Caption = "查询"
Height = 495
Left = 5520
TabIndex = 11
Top = 120
Width = 855
End
Begin VB.CommandButton Command1
Caption = "退出"
Height = 495
Left = 3840
TabIndex = 10
Top = 3720
Width = 1455
End
Begin VB.TextBox Text5
DataField = "现有库存"
DataSource = "Adodc1"
Height = 615
Left = 1680
TabIndex = 9
Text = "Text5"
Top = 3360
Width = 1335
End
Begin VB.TextBox Text4
DataField = "已售出"
DataSource = "Adodc1"
Height = 615
Left = 1560
TabIndex = 8
Text = "Text4"
Top = 2400
Width = 1455
End
Begin VB.TextBox Text3
DataField = "供销商"
DataSource = "Adodc1"
Height = 615
Left = 1560
TabIndex = 7
Text = "Text3"
Top = 1560
Width = 1455
End
Begin VB.TextBox Text2
DataField = "商品名称"
DataSource = "Adodc1"
Height = 615
Left = 1440
TabIndex = 6
Text = "Text2"
Top = 720
Width = 1695
End
Begin VB.TextBox Text1
DataField = "商品标号"
DataSource = "Adodc1"
Height = 615
Left = 1320
TabIndex = 5
Text = "Text1"
Top = 0
Width = 1695
End
Begin VB.Label Label7
Caption = "按商品的编号查询"
Height = 615
Left = 3360
TabIndex = 16
Top = 1440
Width = 975
End
Begin VB.Label Label6
Caption = "查询的库存大于"
Height = 495
Left = 3360
TabIndex = 15
Top = 120
Width = 975
End
Begin VB.Label Label5
Caption = "现有库存"
Height = 615
Left = 120
TabIndex = 4
Top = 3360
Width = 1215
End
Begin VB.Label Label4
Caption = "已售出"
Height = 735
Left = 120
TabIndex = 3
Top = 2400
Width = 1215
End
Begin VB.Label Label3
Caption = "供销商"
Height = 375
Left = 120
TabIndex = 2
Top = 1680
Width = 1215
End
Begin VB.Label Label2
Caption = "商品名称"
Height = 495
Left = 120
TabIndex = 1
Top = 840
Width = 975
End
Begin VB.Label Label1
Caption = "商品编号"
Height = 495
Left = 120
TabIndex = 0
Top = 120
Width = 1215
End
End
Attribute VB_Name = "Form20"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Form4.Show
Me.Hide
End Sub
Private Sub Command2_Click()
If Len(Text6.Text) > 0 Then
Adodc1.CommandType = adCmdText
Adodc1.RecordSource = "select * from 销售列表 where 现有库存 > " & Trim(Text6.Text) & ""
Adodc1.Refresh
Else
MsgBox ("请输入库存量!")
End If
End Sub
Private Sub Command3_Click()
If Len(Text7.Text) > 0 Then
Adodc1.CommandType = adCmdText
Adodc1.RecordSource = "select * from 销售列表 where 商品标号 = '" & Trim(Text7.Text) & " '"
Adodc1.Refresh
Else
MsgBox ("请输入商品编号!")
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -