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

📄 frm报价方式.frm

📁 一个用VB编写的订单系统
💻 FRM
字号:
VERSION 5.00
Object = "{00028C01-0000-0000-0000-000000000046}#1.0#0"; "DBGRID32.OCX"
Begin VB.Form frm报价方式 
   Caption         =   "报价方式"
   ClientHeight    =   4575
   ClientLeft      =   1110
   ClientTop       =   345
   ClientWidth     =   3705
   KeyPreview      =   -1  'True
   LinkTopic       =   "Form1"
   ScaleHeight     =   4575
   ScaleWidth      =   3705
   StartUpPosition =   2  '屏幕中心
   Begin MSDBGrid.DBGrid DBGrid1 
      Bindings        =   "frm报价方式.frx":0000
      Height          =   3645
      Left            =   60
      OleObjectBlob   =   "frm报价方式.frx":001B
      TabIndex        =   4
      Top             =   30
      Width           =   3615
   End
   Begin VB.Data datPrimaryRS 
      Connect         =   "Access"
      DatabaseName    =   ""
      DefaultCursorType=   0  '缺省游标
      DefaultType     =   2  '使用 ODBC
      Exclusive       =   0   'False
      Height          =   345
      Left            =   60
      Options         =   0
      ReadOnly        =   0   'False
      RecordsetType   =   1  'Dynaset
      RecordSource    =   ""
      Top             =   3720
      Width           =   3615
   End
   Begin VB.PictureBox picButtons 
      Align           =   2  'Align Bottom
      Appearance      =   0  'Flat
      BorderStyle     =   0  'None
      ForeColor       =   &H80000008&
      Height          =   465
      Left            =   0
      ScaleHeight     =   465
      ScaleWidth      =   3705
      TabIndex        =   0
      Top             =   4110
      Width           =   3705
      Begin VB.CommandButton cmdClose 
         Caption         =   "关闭(&C)"
         Height          =   300
         Left            =   2490
         TabIndex        =   3
         Top             =   90
         Width           =   1095
      End
      Begin VB.CommandButton cmdDelete 
         Caption         =   "删除(&D)"
         Height          =   300
         Left            =   1320
         TabIndex        =   2
         Top             =   90
         Width           =   1095
      End
      Begin VB.CommandButton cmdAdd 
         Caption         =   "添加(&A)"
         Height          =   300
         Left            =   150
         TabIndex        =   1
         Top             =   90
         Width           =   1095
      End
   End
End
Attribute VB_Name = "frm报价方式"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub cmdAdd_Click()
   Me.datPrimaryRS.Recordset.AddNew
   Me.datPrimaryRS.Recordset.Update
End Sub

Private Sub cmdClose_Click()
   Unload Me
End Sub

Private Sub cmdDelete_Click()
    If Me.datPrimaryRS.Recordset.RecordCount > 0 And Not Me.datPrimaryRS.Recordset.EOF And Not Me.datPrimaryRS.Recordset.BOF Then
       HXFYN = MsgBox("是否删除?", 36, "信息提示")
         If HXFYN = vbYes Then
            Me.datPrimaryRS.Recordset.Delete
            Me.datPrimaryRS.Recordset.MoveNext
            If Me.datPrimaryRS.Recordset.EOF And Me.datPrimaryRS.Recordset.RecordCount > 0 Then
               Me.datPrimaryRS.Recordset.MovePrevious
            End If
          End If
    End If
End Sub

Private Sub Form_Load()
Me.datPrimaryRS.DatabaseName = App.Path & "\订单资料.mdb"
Me.datPrimaryRS.RecordSource = "select * from 报价方式"
Me.datPrimaryRS.Refresh
End Sub

⌨️ 快捷键说明

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