📄 form22.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form Form22
Caption = "Form5"
ClientHeight = 3435
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form5"
ScaleHeight = 3435
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = 960
Top = 3000
Visible = 0 'False
Width = 1815
_ExtentX = 3201
_ExtentY = 582
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 1
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 = "select * from 商品列表"
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.CommandButton Command2
Caption = "返回"
Height = 375
Left = 3840
TabIndex = 3
Top = 2400
Width = 615
End
Begin VB.Frame Frame1
Caption = "商品价格查询"
Height = 2655
Left = 720
TabIndex = 0
Top = 120
Width = 3135
Begin VB.CommandButton command3
Caption = "查找"
Height = 255
Left = 1440
TabIndex = 9
Top = 1560
Width = 975
End
Begin VB.ComboBox Combo2
DataField = "供货商"
DataSource = "Adodc1"
Height = 300
ItemData = "Form22.frx":0000
Left = 1200
List = "Form22.frx":0025
TabIndex = 8
Top = 1080
Width = 1455
End
Begin VB.ComboBox Combo1
DataField = "商品名"
DataSource = "Adodc1"
Height = 300
ItemData = "Form22.frx":00A5
Left = 1200
List = "Form22.frx":00CA
TabIndex = 7
Top = 480
Width = 1455
End
Begin VB.TextBox Text1
DataField = "单价"
DataSource = "Adodc1"
Height = 375
Left = 1200
TabIndex = 5
Top = 1920
Width = 1455
End
Begin VB.CommandButton Command1
Caption = "Command1"
Height = 375
Left = 3120
TabIndex = 2
Top = 2040
Width = 90
End
Begin VB.Label Label3
Caption = "单价"
Height = 255
Left = 360
TabIndex = 6
Top = 1920
Width = 735
End
Begin VB.Label Label2
Caption = "供应商"
Height = 255
Left = 360
TabIndex = 4
Top = 1080
Width = 735
End
Begin VB.Label Label1
Caption = "商品名"
Height = 375
Left = 360
TabIndex = 1
Top = 480
Width = 1335
End
End
End
Attribute VB_Name = "Form22"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command2_Click()
Form12.Show
Me.Hide
End Sub
Private Sub Command3_Click()
If Len(Combo1.Text) > 0 Then
Adodc1.CommandType = adCmdText
Adodc1.RecordSource = "select * from 商品列表 where 商品名= '" & Trim(Combo1.Text) & "'"
Adodc1.Refresh
Else
MsgBox ("请输入商品名!")
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -