删除出仓.frm

来自「此系统是仓库管理系统」· FRM 代码 · 共 64 行

FRM
64
字号
VERSION 5.00
Begin VB.Form Form18 
   Caption         =   "Form18"
   ClientHeight    =   3675
   ClientLeft      =   60
   ClientTop       =   405
   ClientWidth     =   5415
   LinkTopic       =   "Form18"
   ScaleHeight     =   3675
   ScaleWidth      =   5415
   StartUpPosition =   3  '窗口缺省
   Begin VB.Frame Frame1 
      Caption         =   "操作"
      Height          =   3615
      Left            =   0
      TabIndex        =   0
      Top             =   0
      Width           =   5415
      Begin VB.CommandButton Command2 
         Caption         =   "返 回"
         Height          =   615
         Left            =   3480
         TabIndex        =   2
         Top             =   1320
         Width           =   1335
      End
      Begin VB.CommandButton Command1 
         Caption         =   "删 除"
         Height          =   615
         Left            =   720
         TabIndex        =   1
         Top             =   1320
         Width           =   1335
      End
   End
End
Attribute VB_Name = "Form18"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
  Dim strDelete As String
  Dim strNo As String
  strNo = InputBox("请输入你要删除的出仓物资号", 提示!)
  If Trim(strNo) = "" Then Exit Sub
    strDelete = "delete from 出仓表 where 出仓表.出仓物资号='" & Trim(strNo) & "' "
     mycon.BeginTrans
    mycon.Execute (strDelete)
    a = MsgBox("删除出仓表中记录会删除相关的出仓物资情况信息" & Chr(13) & "确定吗?", vbInformation, "提示!")
    If a = vbOK Then
      mycon.CommitTrans
      MsgBox "删除成功"
    Else
      mycon.RollbackTrans
      MsgBox "删除被撤销!", vbExclamation, "提示!"
  End If
End Sub

Private Sub Command2_Click()
Unload Me
End Sub

⌨️ 快捷键说明

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