📄 frmcheckreport.frm
字号:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Begin VB.Form frmCheckReport
BackColor = &H00FFC0FF&
BorderStyle = 1 'Fixed Single
Caption = "入库查询"
ClientHeight = 6360
ClientLeft = 45
ClientTop = 435
ClientWidth = 8610
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 6360
ScaleWidth = 8610
StartUpPosition = 2 'CenterScreen
Begin VB.CommandButton cmdPrint
Caption = "打印"
Height = 375
Left = 6960
TabIndex = 7
Top = 960
Width = 855
End
Begin VB.ComboBox cboType
Height = 315
ItemData = "frmCheckReport.frx":0000
Left = 2640
List = "frmCheckReport.frx":0013
Style = 2 'Dropdown List
TabIndex = 3
Top = 480
Width = 3015
End
Begin VB.TextBox txtData
Height = 375
Left = 2640
TabIndex = 2
Top = 960
Width = 3015
End
Begin VB.CommandButton cmdFind
Caption = "查询"
Height = 375
Left = 5760
TabIndex = 1
Top = 960
Width = 855
End
Begin MSFlexGridLib.MSFlexGrid MSFlexGrid1
Height = 4335
Left = 360
TabIndex = 0
Top = 1680
Width = 7815
_ExtentX = 13785
_ExtentY = 7646
_Version = 393216
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "说明:查询方式中的数量为入库数量"
Height = 255
Left = 120
TabIndex = 6
Top = 120
Width = 3015
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "查询方式"
Height = 195
Index = 0
Left = 1800
TabIndex = 5
Top = 480
Width = 720
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "输入框*"
Height = 195
Index = 1
Left = 1800
TabIndex = 4
Top = 1080
Width = 600
End
End
Attribute VB_Name = "frmCheckReport"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim Sql As String
Dim RS As ADODB.Recordset
Private Sub cmdFind_Click()
'查找
Dim i As Integer
If Trim(Me.txtData.Text) <> "" Then
Sql = "select * from 入库查询表 where "
Sql = Sql & Trim(Me.cboType.Text)
If Me.cboType.ListIndex = 0 Or Me.cboType.ListIndex = 3 _
Or Me.cboType.ListIndex = 4 Then
Sql = Sql & "=" & Trim(Me.txtData.Text)
Else
Sql = Sql & "='" & Trim(Me.txtData.Text) & "'"
End If
writeMS Sql, Me.MSFlexGrid1
Else
MsgBox "主键不能为空!"
Me.txtData.SetFocus
End If
End Sub
Private Sub cmdPrint_Click()
writeMSFlexGrid Me.MSFlexGrid1, "入库盘点"
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -