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

📄 form3.frm

📁 水电费收费管理系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form3 
   Caption         =   "价格修改"
   ClientHeight    =   3000
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   3630
   LinkTopic       =   "Form3"
   ScaleHeight     =   3000
   ScaleWidth      =   3630
   StartUpPosition =   3  '窗口缺省
   Begin VB.Frame frame1 
      Caption         =   "价格修改"
      Height          =   2775
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   3375
      Begin VB.CommandButton Command2 
         Caption         =   "退出"
         Height          =   375
         Left            =   1920
         TabIndex        =   6
         Top             =   2040
         Width           =   1095
      End
      Begin VB.CommandButton Command1 
         Caption         =   "修改"
         Height          =   375
         Left            =   240
         TabIndex        =   5
         Top             =   2040
         Width           =   1095
      End
      Begin VB.TextBox Text1 
         BeginProperty DataFormat 
            Type            =   1
            Format          =   "0"
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   1
         EndProperty
         Height          =   375
         Left            =   1080
         TabIndex        =   2
         Text            =   "Text1"
         Top             =   1200
         Width           =   1815
      End
      Begin VB.ComboBox Combo1 
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   330
         Left            =   1080
         TabIndex        =   1
         Text            =   "Combo1"
         Top             =   480
         Width           =   1815
      End
      Begin VB.Label Label1 
         Caption         =   "价格修改:"
         Height          =   375
         Index           =   1
         Left            =   120
         TabIndex        =   4
         Top             =   1320
         Width           =   1095
      End
      Begin VB.Label Label1 
         Caption         =   "类型选择:"
         Height          =   375
         Index           =   0
         Left            =   120
         TabIndex        =   3
         Top             =   600
         Width           =   1095
      End
   End
End
Attribute VB_Name = "Form3"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If MsgBox("确定修改吗?", vbYesNo) = vbYes Then

Dim MYSET As New ADODB.Recordset
Dim strsql As String
If Combo1.Text = "水价" Then
strsql = "UPDATE USER1 SET WATERMETERFEE =" & VAL(Text1.Text)
Else
strsql = "UPDATE USER1 SET ELCMETERFEE =" & VAL(Text1.Text)
End If
MYSET.Open strsql, config.cnZdx, adOpenStatic, adLockReadOnly
'MYSET.Close
MsgBox "修改成功"
End If
End Sub

Private Sub Command2_Click()
Unload Me
End Sub

Private Sub Form_Load()
Combo1.Clear
Text1.Text = 0
Combo1.AddItem ("水价")
Combo1.AddItem ("电价")
'Combo1.ListIndex = 0

End Sub

⌨️ 快捷键说明

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