⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 库存商品查询条件.frm

📁 用visual basic 6.0 开发的超市管理信息系统!
💻 FRM
字号:
VERSION 5.00
Begin VB.Form search1 
   Caption         =   "库存商品查询"
   ClientHeight    =   5535
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   8655
   Icon            =   "库存商品查询条件.frx":0000
   LinkTopic       =   "Form1"
   ScaleHeight     =   5535
   ScaleWidth      =   8655
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command2 
      Caption         =   "取  消"
      Height          =   975
      Left            =   7530
      TabIndex        =   28
      Top             =   2460
      Width           =   1125
   End
   Begin VB.CommandButton Command1 
      Caption         =   "查  询"
      Height          =   975
      Left            =   7500
      TabIndex        =   27
      Top             =   1140
      Width           =   1125
   End
   Begin VB.CheckBox Check1 
      Caption         =   "Check1"
      Height          =   405
      Index           =   4
      Left            =   480
      TabIndex        =   3
      Top             =   3480
      Width           =   255
   End
   Begin VB.CheckBox Check1 
      Caption         =   "Check1"
      Height          =   405
      Index           =   6
      Left            =   480
      TabIndex        =   5
      Top             =   4590
      Width           =   255
   End
   Begin VB.CheckBox Check1 
      Caption         =   "Check1"
      Height          =   405
      Index           =   5
      Left            =   480
      TabIndex        =   4
      Top             =   4050
      Width           =   255
   End
   Begin VB.CheckBox Check1 
      Caption         =   "Check1"
      Height          =   405
      Index           =   3
      Left            =   480
      TabIndex        =   2
      Top             =   2970
      Width           =   255
   End
   Begin VB.CheckBox Check1 
      Caption         =   "Check1"
      Height          =   405
      Index           =   2
      Left            =   480
      TabIndex        =   1
      Top             =   2340
      Width           =   255
   End
   Begin VB.CheckBox Check1 
      Caption         =   "Check1"
      Height          =   405
      Index           =   1
      Left            =   480
      TabIndex        =   0
      Top             =   1830
      Width           =   255
   End
   Begin VB.Frame Frame2 
      Caption         =   "条件"
      Height          =   4275
      Index           =   0
      Left            =   210
      TabIndex        =   11
      Top             =   930
      Width           =   7245
      Begin VB.TextBox Text1 
         Height          =   345
         Index           =   6
         Left            =   1980
         TabIndex        =   26
         Top             =   3690
         Width           =   3675
      End
      Begin VB.CheckBox Check1 
         Caption         =   "Check1"
         Height          =   405
         Index           =   0
         Left            =   270
         TabIndex        =   18
         Top             =   480
         Width           =   255
      End
      Begin VB.TextBox Text1 
         Height          =   345
         Index           =   0
         Left            =   1980
         TabIndex        =   17
         Top             =   450
         Width           =   3675
      End
      Begin VB.TextBox Text1 
         Height          =   345
         Index           =   1
         Left            =   1980
         TabIndex        =   16
         Top             =   960
         Width           =   3675
      End
      Begin VB.TextBox Text1 
         Height          =   345
         Index           =   2
         Left            =   1980
         TabIndex        =   15
         Top             =   1470
         Width           =   3675
      End
      Begin VB.TextBox Text1 
         Height          =   345
         Index           =   3
         Left            =   1980
         TabIndex        =   14
         Top             =   2010
         Width           =   3675
      End
      Begin VB.TextBox Text1 
         Height          =   345
         Index           =   4
         Left            =   1980
         TabIndex        =   13
         Top             =   2550
         Width           =   3675
      End
      Begin VB.TextBox Text1 
         Height          =   345
         Index           =   5
         Left            =   1980
         TabIndex        =   12
         Top             =   3150
         Width           =   3675
      End
      Begin VB.Label Label3 
         Caption         =   "连锁店名称:"
         Height          =   315
         Index           =   3
         Left            =   660
         TabIndex        =   25
         Top             =   2100
         Width           =   1425
      End
      Begin VB.Label Label3 
         Caption         =   "连锁店编码:"
         Height          =   315
         Index           =   2
         Left            =   660
         TabIndex        =   24
         Top             =   1560
         Width           =   1425
      End
      Begin VB.Label Label3 
         Caption         =   "商品名称:"
         Height          =   315
         Index           =   1
         Left            =   840
         TabIndex        =   23
         Top             =   1020
         Width           =   1425
      End
      Begin VB.Label Label3 
         Caption         =   "商品编码:"
         Height          =   315
         Index           =   0
         Left            =   840
         TabIndex        =   22
         Top             =   570
         Width           =   1425
      End
      Begin VB.Label Label3 
         Caption         =   "供应商编码:"
         Height          =   315
         Index           =   4
         Left            =   660
         TabIndex        =   21
         Top             =   3210
         Width           =   1425
      End
      Begin VB.Label Label3 
         Caption         =   "供应商名称:"
         Height          =   315
         Index           =   5
         Left            =   660
         TabIndex        =   20
         Top             =   2640
         Width           =   1425
      End
      Begin VB.Label Label3 
         Caption         =   "商品货号:"
         Height          =   315
         Index           =   6
         Left            =   840
         TabIndex        =   19
         Top             =   3780
         Width           =   1425
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "日期范围"
      Height          =   885
      Left            =   210
      TabIndex        =   6
      Top             =   0
      Width           =   7245
      Begin VB.TextBox Text3 
         Height          =   315
         Left            =   4500
         TabIndex        =   10
         Top             =   270
         Width           =   1545
      End
      Begin VB.TextBox Text2 
         Height          =   315
         Left            =   1170
         TabIndex        =   8
         Top             =   270
         Width           =   1425
      End
      Begin VB.Label Label4 
         Caption         =   "终止日期:"
         Height          =   345
         Left            =   3570
         TabIndex        =   9
         Top             =   300
         Width           =   1275
      End
      Begin VB.Label Label1 
         Caption         =   "起始日期:"
         Height          =   315
         Left            =   300
         TabIndex        =   7
         Top             =   330
         Width           =   1485
      End
   End
End
Attribute VB_Name = "search1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim txtSQL(0 To 7) As String
    Dim mrc As ADODB.Recordset
    Dim MsgText As String
    Static miCount As Integer
    'ToDo: create test for correct password
    'check for correct password
                          'VB 在线
                    'www.VBzx.net
'                  VB在线 收集整理
'+------------------------------------------------+
'                http://www.VBzx.net
'+------------------------------------------------+
       Dim h As Integer
       Dim v As Integer
       For h = 0 To 6
       If Trim(Text1(h).Text) = "" Then
       v = v + 1
       End If
       Next h
       If v = 7 Then
       MsgBox "没有选择查询条件!"
       Exit Sub
       End If
    If Check1(0).Value = 1 Then
        txtSQL(0) = "select * from 数据存取表 where 商品编码 = '" & Text1(0).Text & "'"
        Set mrc = ExecuteSQL(txtSQL(0), MsgText)
        If mrc.EOF = True Then
            MsgBox "没有商品!", vbOKOnly + vbExclamation, "警告"
           
        
        End If
       
    End If
    If Check1(1).Value = 1 Then
    txtSQL(1) = "select * from 数据存取表 where 商品名称 = '" & Text1(1).Text & "'"
        Set mrc = ExecuteSQL(txtSQL(1), MsgText)
        If mrc.EOF = True Then
            MsgBox "对不起,暂时没有商品!", vbOKOnly + vbExclamation, "警告"
           
        
        End If
       
    End If
    If Check1(2).Value = 1 Then
    txtSQL(2) = "select * from 数据存取表 where 连锁店编码 = '" & Text1(2).Text & "'"
        Set mrc = ExecuteSQL(txtSQL(2), MsgText)
        If mrc.EOF = True Then
            MsgBox "对不起,没有连锁店的纪录!", vbOKOnly + vbExclamation, "警告"
           
        
        End If
       
    End If
    If Check1(3).Value = 1 Then
    txtSQL(3) = "select * from 数据存取表 where 连锁店名称 = '" & Text1(3).Text & "'"
        Set mrc = ExecuteSQL(txtSQL(3), MsgText)
        If mrc.EOF = True Then
            MsgBox "对不起,暂缺!", vbOKOnly + vbExclamation, "警告"
           
        
        End If
       
    End If
    If Check1(4).Value = 1 Then
    txtSQL(4) = "select * from 数据存取表 where 供应商名称 = '" & Text1(4).Text & "'"
        Set mrc = ExecuteSQL(txtSQL(4), MsgText)
        If mrc.EOF = True Then
            MsgBox "对不起,没有此供应商!", vbOKOnly + vbExclamation, "警告"
           
        
        End If
       
    End If
    If Check1(5).Value = 1 Then
    txtSQL(5) = "select * from 数据存取表 where 供应商编码 = '" & Text1(5).Text & "'"
        Set mrc = ExecuteSQL(txtSQL(5), MsgText)
        If mrc.EOF = True Then
            MsgBox "无供应商编码!", vbOKOnly + vbExclamation, "警告"
           
        
        End If
       
    End If
    If Check1(6).Value = 1 Then
    txtSQL(6) = "select * from 数据存取表 where 商品货号 = '" & Text1(6).Text & "'"
        Set mrc = ExecuteSQL(txtSQL(6), MsgText)
        If mrc.EOF = True Then
            MsgBox "无此商品货号!", vbOKOnly + vbExclamation, "警告"
           
        
        End If
       
    End If
   
       
    sqlresult1.txtSQL = txtSQL(0) & txtSQL(1) & txtSQL(2) & txtSQL(3) & txtSQL(4) & txtSQL(5) & txtSQL(6) & txtSQL(7)
    sqlresult1.Show
End Sub


Private Sub Command2_Click()
Unload Me
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -