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

📄 jhcpselect.frm

📁 一套VB完整的灯具销售管理系统设计
💻 FRM
字号:
VERSION 5.00
Object = "{00028C01-0000-0000-0000-000000000046}#1.0#0"; "DBGRID32.OCX"
Begin VB.Form JHcpselect 
   AutoRedraw      =   -1  'True
   BorderStyle     =   3  'Fixed Dialog
   ClientHeight    =   4815
   ClientLeft      =   45
   ClientTop       =   45
   ClientWidth     =   3090
   ClipControls    =   0   'False
   ControlBox      =   0   'False
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   4815
   ScaleWidth      =   3090
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  'CenterScreen
   Begin VB.TextBox Text1 
      Height          =   270
      Left            =   1470
      MaxLength       =   30
      TabIndex        =   0
      Top             =   4395
      Width           =   1425
   End
   Begin VB.Data Data1 
      Caption         =   "Data1"
      Connect         =   "Access"
      DatabaseName    =   ""
      DefaultCursorType=   0  'DefaultCursor
      DefaultType     =   2  'UseODBC
      Exclusive       =   0   'False
      Height          =   285
      Left            =   -1155
      Options         =   0
      ReadOnly        =   0   'False
      RecordsetType   =   1  'Dynaset
      RecordSource    =   ""
      Top             =   1635
      Width           =   1140
   End
   Begin MSDBGrid.DBGrid DBGrid1 
      Bindings        =   "JHcpselect.frx":0000
      Height          =   3660
      Left            =   120
      OleObjectBlob   =   "JHcpselect.frx":0010
      TabIndex        =   3
      ToolTipText     =   "选中产品后,双击即可!"
      Top             =   615
      Width           =   2805
   End
   Begin VB.Label Label3 
      AutoSize        =   -1  'True
      Caption         =   "请输入类型名:"
      ForeColor       =   &H00800000&
      Height          =   180
      Left            =   180
      TabIndex        =   4
      Top             =   4425
      Width           =   1260
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "所有可用产品列表"
      ForeColor       =   &H0080FFFF&
      Height          =   180
      Left            =   795
      TabIndex        =   2
      Top             =   195
      Width           =   1440
   End
   Begin VB.Label Label1 
      BackColor       =   &H00400000&
      BorderStyle     =   1  'Fixed Single
      Height          =   315
      Left            =   75
      TabIndex        =   1
      Top             =   135
      Width           =   2895
   End
End
Attribute VB_Name = "JHcpselect"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim FStr As String
Private Sub DBGrid1_DblClick()
Unload Me
End Sub

Private Sub Form_Click()
Unload Me
End Sub

Private Sub Form_Load()
'初始化数据库
Data1.DatabaseName = appData
Data1.RecordSource = "cpk"
Data1.Refresh
End Sub

Private Sub Form_Unload(Cancel As Integer)
CpStr = DBGrid1.Text
End Sub

Private Sub Text1_Change()
FStr = "品名 Like '*" & Trim(Text1.Text) & "*'"
FStr = "select 品名 from cpk where " & FStr
Data1.RecordSource = FStr
Data1.Refresh
End Sub

⌨️ 快捷键说明

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