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

📄 销售.frm

📁 毕业设计
💻 FRM
字号:
VERSION 5.00
Begin VB.Form 销售 
   Caption         =   "Form1"
   ClientHeight    =   6300
   ClientLeft      =   60
   ClientTop       =   465
   ClientWidth     =   4620
   LinkTopic       =   "Form1"
   ScaleHeight     =   6300
   ScaleWidth      =   4620
   StartUpPosition =   3  '窗口缺省
   Begin VB.TextBox Text1 
      Height          =   375
      Left            =   1680
      TabIndex        =   6
      Top             =   480
      Width           =   1935
   End
   Begin VB.TextBox Text2 
      Height          =   375
      Left            =   1680
      TabIndex        =   5
      Top             =   1200
      Width           =   1935
   End
   Begin VB.TextBox Text4 
      Height          =   375
      Left            =   1680
      TabIndex        =   4
      Top             =   2040
      Width           =   1935
   End
   Begin VB.TextBox Text5 
      Height          =   375
      Left            =   1680
      TabIndex        =   3
      Top             =   2760
      Width           =   1935
   End
   Begin VB.CommandButton Command1 
      Caption         =   "提交"
      Height          =   495
      Left            =   480
      TabIndex        =   2
      Top             =   4200
      Width           =   1095
   End
   Begin VB.CommandButton Command2 
      Caption         =   "返回"
      Height          =   495
      Left            =   2520
      TabIndex        =   1
      Top             =   4200
      Width           =   1095
   End
   Begin VB.TextBox Text6 
      Height          =   375
      Left            =   1680
      TabIndex        =   0
      Top             =   3360
      Width           =   1935
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "卡  号"
      Height          =   180
      Left            =   600
      TabIndex        =   11
      Top             =   600
      Width           =   540
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      Caption         =   "类  型"
      Height          =   180
      Left            =   600
      TabIndex        =   10
      Top             =   1320
      Width           =   540
   End
   Begin VB.Label Label4 
      AutoSize        =   -1  'True
      Caption         =   "价  格"
      Height          =   180
      Left            =   600
      TabIndex        =   9
      Top             =   2040
      Width           =   540
   End
   Begin VB.Label Label5 
      AutoSize        =   -1  'True
      Caption         =   "供应商"
      Height          =   180
      Left            =   600
      TabIndex        =   8
      Top             =   2760
      Width           =   540
   End
   Begin VB.Label Label6 
      AutoSize        =   -1  'True
      Caption         =   "联系电话"
      Height          =   180
      Left            =   600
      TabIndex        =   7
      Top             =   3360
      Width           =   720
   End
End
Attribute VB_Name = "销售"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim conn As New ADODB.Connection
conn.ConnectionString = "file name=E:\电信卡进销存\connect.udl"
conn.Open
conn.Execute "delete from 库存 where 卡号 like '" + Text1.Text + "'"
conn.Close
Text2.Text = ""
Text6.Text = ""
Text4.Text = ""
Text5.Text = ""
Text1.Text = ""
End Sub

Private Sub Command2_Click()
电信进销存管理系统.Show
Unload 销售
End Sub

Private Sub Text1_lostfocus()
Dim conn As New ADODB.Connection
Dim rs As New ADODB.Recordset
conn.ConnectionString = "file name=E:\电信卡进销存\connect.udl"
conn.Open
rs.ActiveConnection = conn
rs.Open "select * from 库存 where 卡号 like '" + Text1.Text + "'"
If rs.EOF = True Then
    MsgBox "没有该卡!", vbCritical, "错误提示"
    Text2.Text = ""
    Text4.Text = ""
    Text5.Text = ""
    Text1.SetFocus
Else
    Text2.Text = rs!类型
    Text4.Text = rs!价格
    Text5.Text = rs!供应商
    Text6.Text = rs!联系电话
End If
    rs.Close
    conn.Close

End Sub

⌨️ 快捷键说明

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