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

📄 form7.frm

📁 vb源码
💻 FRM
📖 第 1 页 / 共 5 页
字号:
      BorderStyle     =   0  'None
      Caption         =   "Frame1"
      Height          =   255
      Left            =   3240
      TabIndex        =   4
      Top             =   360
      Visible         =   0   'False
      Width           =   255
      Begin CSCommand.Command Command1 
         Height          =   255
         Left            =   6480
         TabIndex        =   20
         Top             =   1440
         Width           =   615
         _ExtentX        =   1085
         _ExtentY        =   450
         IconAlign       =   0
         Icon            =   "Form7.frx":C583
         Caption         =   "查找"
         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 MSDataGridLib.DataGrid DataGrid1 
         Height          =   2415
         Left            =   600
         TabIndex        =   19
         Top             =   2880
         Width           =   6855
         _ExtentX        =   12091
         _ExtentY        =   4260
         _Version        =   393216
         HeadLines       =   1
         RowHeight       =   15
         BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ColumnCount     =   2
         BeginProperty Column00 
            DataField       =   ""
            Caption         =   ""
            BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
               Type            =   0
               Format          =   ""
               HaveTrueFalseNull=   0
               FirstDayOfWeek  =   0
               FirstWeekOfYear =   0
               LCID            =   2052
               SubFormatType   =   0
            EndProperty
         EndProperty
         BeginProperty Column01 
            DataField       =   ""
            Caption         =   ""
            BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
               Type            =   0
               Format          =   ""
               HaveTrueFalseNull=   0
               FirstDayOfWeek  =   0
               FirstWeekOfYear =   0
               LCID            =   2052
               SubFormatType   =   0
            EndProperty
         EndProperty
         SplitCount      =   1
         BeginProperty Split0 
            BeginProperty Column00 
            EndProperty
            BeginProperty Column01 
            EndProperty
         EndProperty
      End
      Begin VB.TextBox Text2 
         Appearance      =   0  'Flat
         Height          =   270
         Left            =   4080
         TabIndex        =   17
         Top             =   2280
         Width           =   1215
      End
      Begin VB.TextBox Text1 
         Appearance      =   0  'Flat
         Height          =   270
         Left            =   1320
         TabIndex        =   14
         Top             =   2280
         Width           =   1455
      End
      Begin MSDataListLib.DataCombo DataCombo2 
         Height          =   330
         Left            =   5520
         TabIndex        =   11
         Top             =   840
         Width           =   1575
         _ExtentX        =   2778
         _ExtentY        =   582
         _Version        =   393216
         Style           =   2
         Text            =   "请选择"
      End
      Begin MSDataListLib.DataCombo DataCombo1 
         Height          =   330
         Left            =   2880
         TabIndex        =   9
         Top             =   840
         Width           =   1815
         _ExtentX        =   3201
         _ExtentY        =   582
         _Version        =   393216
         Style           =   2
         Text            =   "请选择"
      End
      Begin VB.ComboBox Combo1 
         Appearance      =   0  'Flat
         Height          =   300
         ItemData        =   "Form7.frx":C59F
         Left            =   1080
         List            =   "Form7.frx":C5D3
         TabIndex        =   7
         Text            =   "请选择"
         Top             =   840
         Width           =   1095
      End
      Begin VB.Line Line3 
         X1              =   480
         X2              =   7440
         Y1              =   2040
         Y2              =   2040
      End
      Begin VB.Label Label12 
         AutoSize        =   -1  'True
         Caption         =   "件"
         Height          =   180
         Left            =   5520
         TabIndex        =   18
         Top             =   2400
         Width           =   180
      End
      Begin VB.Label Label11 
         AutoSize        =   -1  'True
         Caption         =   "库存数:"
         Height          =   180
         Left            =   3360
         TabIndex        =   16
         Top             =   2400
         Width           =   630
      End
      Begin VB.Label Label10 
         AutoSize        =   -1  'True
         Caption         =   "件"
         Height          =   180
         Left            =   2880
         TabIndex        =   15
         Top             =   2400
         Width           =   180
      End
      Begin VB.Label Label9 
         AutoSize        =   -1  'True
         Caption         =   "已售出:"
         Height          =   180
         Left            =   600
         TabIndex        =   13
         Top             =   2400
         Width           =   630
      End
      Begin VB.Label Label8 
         AutoSize        =   -1  'True
         Caption         =   "您要找的产品信息如下......."
         Height          =   180
         Left            =   480
         TabIndex        =   12
         Top             =   1680
         Width           =   2430
      End
      Begin VB.Label Label7 
         AutoSize        =   -1  'True
         Caption         =   "型号:"
         Height          =   180
         Left            =   4920
         TabIndex        =   10
         Top             =   960
         Width           =   450
      End
      Begin VB.Label Label6 
         AutoSize        =   -1  'True
         Caption         =   "品牌:"
         Height          =   180
         Left            =   2400
         TabIndex        =   8
         Top             =   960
         Width           =   450
      End
      Begin VB.Label Label5 
         AutoSize        =   -1  'True
         Caption         =   "类型:"
         Height          =   180
         Left            =   480
         TabIndex        =   6
         Top             =   960
         Width           =   450
      End
      Begin VB.Label Label4 
         Caption         =   "请输入您要揸找的..........."
         Height          =   375
         Left            =   480
         TabIndex        =   5
         Top             =   360
         Width           =   2655
      End
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   330
      Left            =   3360
      Top             =   7440
      Width           =   1695
      _ExtentX        =   2990
      _ExtentY        =   582
      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         =   "Adodc1"
      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 Label3 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "::::::客户查找::::::"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H8000000E&
      Height          =   210
      Left            =   480
      TabIndex        =   3
      Top             =   2040
      Width           =   2100
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "::::::用户查找::::::"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H8000000E&
      Height          =   210
      Left            =   480
      TabIndex        =   2
      Top             =   1560
      Width           =   2100
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "::::::职员查找::::::"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H8000000E&
      Height          =   210
      Left            =   480
      TabIndex        =   1
      Top             =   1080
      Width           =   2100
   End
   Begin VB.Label Label14 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "::::::货物查找::::::"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H8000000E&
      Height          =   210
      Left            =   480
      TabIndex        =   0
      Top             =   600
      Width           =   2100
   End
End
Attribute VB_Name = "Form7"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False


Private Sub Command1_Click()
Dim s As Integer
Dim k As Integer
Dim i As Integer
Adodc2.RecordSource = "SELECT * FROM 货存表 where 类型='" + Combo1.Text + "' and 品牌='" + DataCombo1.Text + "' and 型号='" + DataCombo2.Text + "'"
Adodc2.Refresh
If Adodc2.Recordset.RecordCount = 0 Then
MsgBox "没有任何记录!!"
Text1.Text = ""
Text2.Text = ""
DataCombo1.Text = ""
DataCombo2.Text = ""
Exit Sub

⌨️ 快捷键说明

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