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

📄 frm查询.frm

📁 本系统是根据企业的特点
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Frmsell 
   Caption         =   "销售"
   ClientHeight    =   1950
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4515
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   ScaleHeight     =   1950
   ScaleWidth      =   4515
   StartUpPosition =   2  '屏幕中心
   Begin VB.TextBox Text2 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   345
      Left            =   2280
      TabIndex        =   5
      Top             =   840
      Width           =   2085
   End
   Begin VB.CommandButton Command2 
      Cancel          =   -1  'True
      Caption         =   "放弃(&Q)"
      Height          =   405
      Left            =   2400
      TabIndex        =   3
      Top             =   1320
      Width           =   1125
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确定(&E)"
      Default         =   -1  'True
      Height          =   405
      Left            =   840
      TabIndex        =   2
      Top             =   1320
      Width           =   1125
   End
   Begin VB.TextBox Text1 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   345
      Left            =   2280
      TabIndex        =   1
      Top             =   240
      Width           =   2085
   End
   Begin VB.Label Label2 
      Caption         =   "或请输入要销售的价格:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   285
      Left            =   120
      TabIndex        =   4
      Top             =   840
      Width           =   2115
   End
   Begin VB.Label Label1 
      Caption         =   "请输入要销售的名称:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   285
      Left            =   120
      TabIndex        =   0
      Top             =   240
      Width           =   1995
   End
End
Attribute VB_Name = "Frmsell"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If Len(Text1.Text) > 0 Then
          Set conn = New ADODB.Connection
          conn.Open "DSN=电脑经营系统", ";pwd=14813808"
          Set ado = New ADODB.Recordset
         ado.Open "select * from 公司业务情况  where 型号和名称='" & Trim(Text1.Text) & "'", conn, 3, 2
        
        
        If ado.RecordCount = 0 Then
        HXFYN = MsgBox("没有要查询的型号!", 48, "信息提示")
                  Text1.Text = ""
          Text2.Text = ""
          Load Me
        Else
          aa = Trim(Text1.Text)
        Unload Me
        Load frmshow
        frmshow.Show
      End If
    End If
If Val(Text2.Text) > 0 Then
If Not IsNumeric(Text2.Text) Then
    MsgBox "没有要查询的型号!", 48, "信息提示"
    Else
Set conn = New ADODB.Connection
          conn.Open "DSN=电脑经营系统", ";pwd=14813808"
          Set ado = New ADODB.Recordset
          ado.Open "select * from 公司业务情况  where 价格=" & Val(Trim(Text2.Text)), conn, 3, 2
        If ado.RecordCount = 0 Then
             HXFYN = MsgBox("没有要查询的价格!", 48, "信息提示")
            Text1.Text = ""
          Text2.Text = ""
          Load Me
          Else
          cc = Val(Text2.Text)
         Unload Me
         Load frmshow
        frmshow.Show
      End If
    End If
    End If
End Sub

Private Sub Command2_Click()
    Unload Me
End Sub

Private Sub Form_Load()
cc = Val(Text2.Text)
End Sub

⌨️ 快捷键说明

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