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

📄 高级商家查找.frm

📁 软件用到的技巧:透明窗体
💻 FRM
字号:
VERSION 5.00
Object = "{E95A2510-F3D1-416D-823B-4F840FE98091}#3.0#0"; "Command.ocx"
Begin VB.Form Form8 
   Caption         =   "高级查找----查找商家"
   ClientHeight    =   2580
   ClientLeft      =   60
   ClientTop       =   390
   ClientWidth     =   6285
   LinkTopic       =   "Form8"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   ScaleHeight     =   2580
   ScaleWidth      =   6285
   Begin CSCommand.Command Command1 
      Height          =   375
      Left            =   4560
      TabIndex        =   14
      Top             =   2085
      Width           =   1530
      _ExtentX        =   2699
      _ExtentY        =   661
      IconAlign       =   0
      Icon            =   "高级商家查找.frx":0000
      Caption         =   "开始查询 &S"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
   End
   Begin VB.CheckBox Check5 
      Caption         =   "查询完毕关闭本窗体"
      Height          =   225
      Left            =   195
      TabIndex        =   13
      Top             =   2100
      Width           =   2040
   End
   Begin VB.Frame Frame2 
      Caption         =   "生成的 Select 语句"
      Height          =   1275
      Left            =   -1290
      TabIndex        =   15
      Top             =   3810
      Visible         =   0   'False
      Width           =   6090
      Begin VB.TextBox Text1 
         Height          =   885
         Left            =   105
         Locked          =   -1  'True
         MultiLine       =   -1  'True
         ScrollBars      =   2  'Vertical
         TabIndex        =   16
         Top             =   285
         Width           =   5880
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "设定查询的条件"
      Height          =   1845
      Left            =   105
      TabIndex        =   0
      Top             =   90
      Width           =   6075
      Begin VB.TextBox Text5 
         Height          =   285
         Left            =   3765
         TabIndex        =   12
         Top             =   1395
         Width           =   2205
      End
      Begin VB.TextBox Text4 
         Height          =   285
         Left            =   3765
         TabIndex        =   9
         Top             =   1020
         Width           =   2205
      End
      Begin VB.TextBox Text3 
         Height          =   285
         Left            =   3765
         TabIndex        =   6
         Top             =   645
         Width           =   2205
      End
      Begin VB.TextBox Text2 
         Height          =   285
         Left            =   3765
         TabIndex        =   3
         Top             =   270
         Width           =   2205
      End
      Begin VB.ComboBox Combo4 
         Height          =   300
         ItemData        =   "高级商家查找.frx":001C
         Left            =   1320
         List            =   "高级商家查找.frx":0044
         Style           =   2  'Dropdown List
         TabIndex        =   11
         Top             =   1395
         Width           =   1935
      End
      Begin VB.ComboBox Combo3 
         Height          =   300
         ItemData        =   "高级商家查找.frx":00BC
         Left            =   1320
         List            =   "高级商家查找.frx":00E4
         Style           =   2  'Dropdown List
         TabIndex        =   8
         Top             =   1020
         Width           =   1935
      End
      Begin VB.ComboBox Combo2 
         Height          =   300
         ItemData        =   "高级商家查找.frx":015C
         Left            =   1320
         List            =   "高级商家查找.frx":0184
         Style           =   2  'Dropdown List
         TabIndex        =   5
         Top             =   650
         Width           =   1935
      End
      Begin VB.ComboBox Combo1 
         Height          =   300
         ItemData        =   "高级商家查找.frx":01FC
         Left            =   1320
         List            =   "高级商家查找.frx":0224
         Style           =   2  'Dropdown List
         TabIndex        =   2
         Top             =   285
         Width           =   1935
      End
      Begin VB.CheckBox Check4 
         Caption         =   "第四条件:"
         Height          =   300
         Left            =   165
         TabIndex        =   10
         Top             =   1410
         Width           =   1260
      End
      Begin VB.CheckBox Check3 
         Caption         =   "第三条件:"
         Height          =   300
         Left            =   165
         TabIndex        =   7
         Top             =   1035
         Width           =   1260
      End
      Begin VB.CheckBox Check2 
         Caption         =   "第二条件:"
         Height          =   300
         Left            =   165
         TabIndex        =   4
         Top             =   675
         Width           =   1260
      End
      Begin VB.CheckBox Check1 
         Caption         =   "第一条件:"
         Height          =   300
         Left            =   165
         TabIndex        =   1
         Top             =   300
         Value           =   1  'Checked
         Width           =   1260
      End
      Begin VB.Label Label4 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "包含"
         Height          =   180
         Left            =   3345
         TabIndex        =   20
         Top             =   1440
         Width           =   360
      End
      Begin VB.Label Label3 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "包含"
         Height          =   180
         Left            =   3345
         TabIndex        =   19
         Top             =   1065
         Width           =   360
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "包含"
         Height          =   180
         Left            =   3345
         TabIndex        =   18
         Top             =   690
         Width           =   360
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "包含"
         Height          =   180
         Left            =   3345
         TabIndex        =   17
         Top             =   315
         Width           =   360
      End
   End
End
Attribute VB_Name = "Form8"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'****************************************************************************
'人人为我,我为人人
'枕善居收藏整理
'发布日期:2007/12/24
'描    述:商务名片及客户资料管理系统 Ver 1.73
'网    站:http://www.Mndsoft.com/  (VB6源码博客)
'网    站:http://www.VbDnet.com/   (VB.NET源码博客,主要基于.NET2005)
'e-mail  :Mndsoft@163.com
'e-mail  :Mndsoft@126.com
'OICQ    :88382850
'          如果您有新的好的代码别忘记给枕善居哦!
'****************************************************************************
Option Explicit

Private Sub Command1_Click()
    Dim FirstLike As Boolean
    Dim sqlstr As String
    sqlstr = "select * from com where "
    If Check1.Value = 1 And Trim(Text2.Text) <> "" Then
        sqlstr = sqlstr & " " & Combo1.Text & " " & "like '*" & Trim(Text2.Text) & "*' "
        FirstLike = True
    End If
    If Check2.Value = 1 And Trim(Text3.Text) <> "" Then
        If FirstLike = True Then
            sqlstr = sqlstr & " And "
        Else
            FirstLike = True
        End If
        sqlstr = sqlstr & Combo2.Text & " " & "like '*" & Trim(Text3.Text) & "*' "
    End If
    If Check3.Value = 1 And Trim(Text4.Text) <> "" Then
        If FirstLike = True Then
            sqlstr = sqlstr & " And "
        Else
            FirstLike = True
        End If
        sqlstr = sqlstr & Combo3.Text & " " & "like '*" & Trim(Text4.Text) & "*' "
    End If
    
    If Check4.Value = 1 And Trim(Text5.Text) <> "" Then
        If FirstLike = True Then
            sqlstr = sqlstr & " And "
        Else
            FirstLike = True
        End If
        sqlstr = sqlstr & Combo4.Text & " " & "like '*" & Trim(Text5.Text) & "*' "
    End If

    
    sqlstr = sqlstr & " order by id desc "
    If FirstLike = True Then
        allshow (sqlstr)
    End If

    If Check5.Value = 1 Then
        Unload Me
    End If
End Sub

Private Sub Form_Load()
    Me.Icon = MDIForm1.Icon
    Me.BackColor = FormBackColor: Me.Frame1.BackColor = Me.BackColor: Me.Frame2.BackColor = Me.BackColor
    form8show = True
    Me.Height = 3090
    Me.Width = 6375
    Me.Check1.BackColor = Me.BackColor
    Me.Check2.BackColor = Me.BackColor
    Me.Check3.BackColor = Me.BackColor
    Me.Check4.BackColor = Me.BackColor
    Me.Check5.BackColor = Me.BackColor
End Sub

Private Sub Form_Resize()
On Error GoTo reerror
    Me.Height = 3090
    Me.Width = 6375
reerror:
End Sub

Private Sub Form_Unload(Cancel As Integer)
    form8show = False
End Sub

⌨️ 快捷键说明

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