📄 yy_cpbj.frm
字号:
Top = 245
Width = 615
End
Begin VB.CommandButton cmdnext
Caption = "向后"
BeginProperty Font
Name = "宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 610
Index = 1
Left = 1320
Picture = "Yy_cpbj.frx":ACFF
Style = 1 'Graphical
TabIndex = 12
Top = 245
Width = 615
End
Begin VB.CommandButton cmdxq
Caption = "向前"
BeginProperty Font
Name = "宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 610
Left = 705
Picture = "Yy_cpbj.frx":B2D1
Style = 1 'Graphical
TabIndex = 11
Top = 245
Width = 615
End
Begin VB.CommandButton cmdqd
Caption = "前端"
BeginProperty Font
Name = "宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 610
Index = 0
Left = 75
Picture = "Yy_cpbj.frx":B8A3
Style = 1 'Graphical
TabIndex = 10
Top = 245
Width = 615
End
Begin VB.CommandButton CmdOK
Caption = "确认"
BeginProperty Font
Name = "宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 610
Left = 5790
Picture = "Yy_cpbj.frx":BE75
Style = 1 'Graphical
TabIndex = 9
Top = 245
Width = 615
End
Begin VB.CommandButton Cmddelete
Caption = "删除"
BeginProperty Font
Name = "宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 610
Left = 4560
Picture = "Yy_cpbj.frx":BF67
Style = 1 'Graphical
TabIndex = 8
Top = 245
Width = 615
End
Begin VB.CommandButton Cmdedit
Caption = "编辑"
BeginProperty Font
Name = "宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 610
Left = 5175
Picture = "Yy_cpbj.frx":C539
Style = 1 'Graphical
TabIndex = 7
Top = 245
Width = 615
End
Begin VB.CommandButton Cmdcancel
Caption = "取消"
BeginProperty Font
Name = "宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 610
Left = 6420
Picture = "Yy_cpbj.frx":CB0B
Style = 1 'Graphical
TabIndex = 6
Top = 245
Width = 615
End
Begin VB.CommandButton Cmdreturn
Caption = "返回"
BeginProperty Font
Name = "宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 610
Left = 7050
Picture = "Yy_cpbj.frx":D0DD
Style = 1 'Graphical
TabIndex = 5
Top = 245
Width = 615
End
End
Begin MSAdodcLib.Adodc Adoprimaryrs
Height = 615
Left = 3180
Top = 5160
Width = 4815
_ExtentX = 8493
_ExtentY = 1085
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 = ""
OLEDBString = ""
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = ""
Caption = "Adoprimaryrs"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "PMingLiU"
Size = 9
Charset = 136
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin TrueOleDBGrid60.TDBGrid TDBGrid3
Bindings = "Yy_cpbj.frx":D360
Height = 6450
Left = 30
OleObjectBlob = "Yy_cpbj.frx":D37B
TabIndex = 4
Top = 450
Width = 2745
End
Begin VB.TextBox Text
BackColor = &H00FFFFC0&
DataField = "cpbh"
DataSource = "Adoprimaryrs"
Enabled = 0 'False
BeginProperty Font
Name = "宋体"
Size = 11.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 345
Index = 0
Left = 6540
Locked = -1 'True
TabIndex = 24
Top = 210
Width = 2700
End
Begin MSAdodcLib.Adodc Ado_CaiZh
Height = 465
Left = 3180
Top = 2190
Width = 2520
_ExtentX = 4445
_ExtentY = 820
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 = ""
OLEDBString = ""
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = ""
Caption = "Ado_CaiZh"
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 MSAdodcLib.Adodc Ado_Dw
Height = 495
Left = 3150
Top = 2850
Width = 2625
_ExtentX = 4630
_ExtentY = 873
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 = ""
OLEDBString = ""
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = ""
Caption = "Ado_Dw"
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.Label Label
Caption = "商品查询"
BeginProperty Font
Name = "宋体"
Size = 11.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 285
Index = 22
Left = 75
TabIndex = 17
Top = 90
Width = 1065
End
End
Attribute VB_Name = "yy_cpbj"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim combo_Gwcp As Recordset
Dim TjBz As Boolean
Dim Data_Cx As Recordset
Dim a(6) As String
Dim LC As Boolean
Dim rs As Recordset
Dim XG_BJ As Boolean
Private Sub CMd_LC_Click()
If Cmdadd.Enabled = True Then
LC = True
TjBz = True
a(1) = Trim(Combo(0).Text)
a(3) = Trim(Text(1).Text)
a(4) = Trim(Text(2).Text)
If Ado_body.Recordset.RecordCount > 0 Then
Ado_body.Recordset.MoveFirst
For i = 1 To Ado_body.Recordset.RecordCount
Ado_body.Recordset.ActiveConnection.Execute "insert into yy_bzdj_b(cpbh,gg,gys_bizh,gys_dj,jmdj,jkdj) values('','" & Ado_body.Recordset.Fields("gg").Value & "','" & Ado_body.Recordset.Fields("gys_bizh").Value & "','" & Ado_body.Recordset.Fields("gys_dj").Value & "','" & Ado_body.Recordset.Fields("jmdj").Value & "','" & Ado_body.Recordset.Fields("jkdj").Value & "')"
Ado_body.Recordset.MoveNext
Next i
End If
Call Cmdadd_Click
Combo(0).Text = a(1)
Text(1).Text = a(3)
Text(2).Text = a(4)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -