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

📄 商品销售排行榜.frm

📁 用visual basic 6.0 开发的超市管理信息系统!
💻 FRM
字号:
VERSION 5.00
Begin VB.Form search2 
   Caption         =   "商品销售排行榜"
   ClientHeight    =   2730
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   6390
   Icon            =   "商品销售排行榜.frx":0000
   LinkTopic       =   "Form1"
   ScaleHeight     =   2730
   ScaleWidth      =   6390
   StartUpPosition =   3  '窗口缺省
   Begin VB.Frame Frame2 
      Caption         =   "查询条件"
      Height          =   1845
      Left            =   30
      TabIndex        =   1
      Top             =   930
      Width           =   6345
      Begin VB.CommandButton Command2 
         Caption         =   "取消"
         Height          =   495
         Left            =   5250
         TabIndex        =   9
         Top             =   1080
         Width           =   1065
      End
      Begin VB.CommandButton Command1 
         Caption         =   "确定"
         Height          =   525
         Left            =   5250
         TabIndex        =   8
         Top             =   330
         Width           =   1035
      End
      Begin VB.TextBox Text2 
         Height          =   270
         Left            =   2010
         TabIndex        =   7
         Top             =   990
         Width           =   2835
      End
      Begin VB.TextBox Text1 
         Height          =   285
         Left            =   2040
         TabIndex        =   6
         Top             =   390
         Width           =   2805
      End
      Begin VB.CheckBox Check2 
         Caption         =   "Check2"
         Height          =   315
         Left            =   330
         TabIndex        =   3
         Top             =   990
         Width           =   255
      End
      Begin VB.CheckBox Check1 
         Caption         =   "Check1"
         Height          =   375
         Left            =   330
         TabIndex        =   2
         Top             =   390
         Width           =   195
      End
      Begin VB.Label Label2 
         Caption         =   "商品名称:"
         Height          =   345
         Left            =   990
         TabIndex        =   5
         Top             =   1020
         Width           =   1275
      End
      Begin VB.Label Label1 
         Caption         =   "连锁店编码:"
         Height          =   315
         Left            =   810
         TabIndex        =   4
         Top             =   450
         Width           =   1575
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "日期范围"
      Height          =   795
      Left            =   -60
      TabIndex        =   0
      Top             =   60
      Width           =   6405
      Begin VB.TextBox Text4 
         Height          =   315
         Left            =   4230
         TabIndex        =   13
         Top             =   240
         Width           =   1455
      End
      Begin VB.TextBox Text3 
         Height          =   315
         Left            =   1140
         TabIndex        =   11
         Top             =   240
         Width           =   1275
      End
      Begin VB.Label Label4 
         Caption         =   "终止日期:"
         Height          =   285
         Left            =   3360
         TabIndex        =   12
         Top             =   270
         Width           =   1125
      End
      Begin VB.Label Label3 
         Caption         =   "起始日期:"
         Height          =   345
         Left            =   240
         TabIndex        =   10
         Top             =   300
         Width           =   915
      End
   End
End
Attribute VB_Name = "search2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub Command1_Click()
 Dim txtSQL(0 To 2) 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
     If Trim(Text1.Text) = "" And Trim(Text2.Text) = "" Then
       MsgBox "没有选择查询条件!"
            Exit Sub
       End If
    If Check1.Value = 1 Then
        txtSQL(0) = "select * from 数据存取表 where 连锁店编码 = '" & Text1.Text & "'"
        Set mrc = ExecuteSQL(txtSQL(0), MsgText)
        If mrc.EOF = True Then
            MsgBox "没有连锁店加盟!", vbOKOnly + vbExclamation, "警告"
           
                              'VB 在线
                    'www.VBzx.net
'                  VB在线 收集整理
'+------------------------------------------------+
'                http://www.VBzx.net
'+------------------------------------------------+
        End If
       
    End If
    If Check2.Value = 1 Then
    txtSQL(1) = "select * from 数据存取表 where 商品名称 = '" & Text2.Text & "'"
        Set mrc = ExecuteSQL(txtSQL(1), MsgText)
        If mrc.EOF = True Then
            MsgBox "对不起,暂时没有商品!", vbOKOnly + vbExclamation, "警告"
            End If
       End If
      
       
       sqlresult2.txtSQL = txtSQL(0) & txtSQL(1) & txtSQL(2)
       sqlresult2.Show
End Sub

Private Sub Command2_Click()
Unload Me
End Sub

⌨️ 快捷键说明

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