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

📄 update.frm

📁 。简易银行卡管理系统为银行管理层提供全面的银行卡客户分析
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Update 
   Caption         =   "修改利率"
   ClientHeight    =   5700
   ClientLeft      =   60
   ClientTop       =   510
   ClientWidth     =   5520
   LinkTopic       =   "Form1"
   ScaleHeight     =   5700
   ScaleWidth      =   5520
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton cmdCancel 
      Caption         =   "取消"
      Height          =   375
      Left            =   2880
      TabIndex        =   13
      Top             =   4320
      Width           =   1095
   End
   Begin VB.CommandButton cmdModify 
      Caption         =   "修改"
      Height          =   375
      Left            =   1080
      TabIndex        =   12
      Top             =   4320
      Width           =   1095
   End
   Begin VB.TextBox txtValue 
      Height          =   375
      Index           =   5
      Left            =   2040
      TabIndex        =   11
      Top             =   3360
      Width           =   2415
   End
   Begin VB.TextBox txtValue 
      Height          =   375
      Index           =   4
      Left            =   2040
      TabIndex        =   10
      Top             =   2760
      Width           =   2415
   End
   Begin VB.TextBox txtValue 
      Height          =   375
      Index           =   3
      Left            =   2040
      TabIndex        =   9
      Top             =   2160
      Width           =   2415
   End
   Begin VB.TextBox txtValue 
      Height          =   375
      Index           =   2
      Left            =   2040
      TabIndex        =   8
      Top             =   1560
      Width           =   2415
   End
   Begin VB.TextBox txtValue 
      Height          =   375
      Index           =   1
      Left            =   2040
      TabIndex        =   7
      Top             =   960
      Width           =   2415
   End
   Begin VB.TextBox txtValue 
      Height          =   375
      Index           =   0
      Left            =   2040
      TabIndex        =   6
      Top             =   360
      Width           =   2415
   End
   Begin VB.Label lblField 
      Caption         =   "八年"
      Height          =   375
      Index           =   5
      Left            =   840
      TabIndex        =   5
      Top             =   3360
      Width           =   855
   End
   Begin VB.Label lblField 
      Caption         =   "五年"
      Height          =   375
      Index           =   4
      Left            =   840
      TabIndex        =   4
      Top             =   2760
      Width           =   855
   End
   Begin VB.Label lblField 
      Caption         =   "三年"
      Height          =   375
      Index           =   3
      Left            =   840
      TabIndex        =   3
      Top             =   2160
      Width           =   855
   End
   Begin VB.Label lblField 
      Caption         =   "二年"
      Height          =   375
      Index           =   2
      Left            =   840
      TabIndex        =   2
      Top             =   1560
      Width           =   855
   End
   Begin VB.Label lblField 
      Caption         =   "一年"
      Height          =   375
      Index           =   1
      Left            =   840
      TabIndex        =   1
      Top             =   960
      Width           =   855
   End
   Begin VB.Label lblField 
      Caption         =   "活期"
      Height          =   375
      Index           =   0
      Left            =   840
      TabIndex        =   0
      Top             =   360
      Width           =   855
   End
End
Attribute VB_Name = "Update"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'当前选定行号
Public CurEm As Integer

'Private Sub DataGrid1_Click()
'    CurEm = DataGrid1.Row
'End Sub

'记录选定行
Private Sub DataGrid1_RowColChange(LastRow As Variant, ByVal LastCol As Integer)
    CurEm = DataGrid1.Row
End Sub
'退出程序
Private Sub cmdCancel_Click()
    Me.Hide
End Sub

'修改员工信息
Private Sub cmdModify_Click()
    '打开错误处理陷阱
    Dim intErrFileNo As Integer  '自由文件号
    On Error GoTo ErrGoto
    '----------------------------------------------------
    '生成SQL语句
    SQL = "UPDATE 利率表 SET 活期 =" & txtValue(0).Text & _
        " ,一年 = " & txtValue(1).Text & _
        " ,二年 = " & txtValue(2).Text & _
        " ,三年 = " & txtValue(3).Text & _
        " ,五年 = " & txtValue(4).Text & _
        " ,八年 = " & txtValue(5).Text & _
        " "
    '打开连接
    OpenDBFile
    '执行SQL
    gCon.Execute SQL
    '关闭连接
    CloseDBFile
    Me.Hide
    '刷新数据
    BCAccuralform.Adodc1.Refresh
    '----------------------------------------------------
    Exit Sub
    '-----------------------------
ErrGoto:
    '把错误信息保存在文件里
    intErrFileNo = FreeFile()
    Open "YFSystem.ini" For Append As intErrFileNo
    Print #intErrFileNo, Chr(34) + Format(Now, "YYYY-MM-DD HH:MM:SS") + Chr(34), Chr(34) + "信息" + Chr(34), Chr(34) + Err.Description + Chr(34), Chr(34) + "Command1_Click(Addform)" + Chr(34), Chr(34) + App.Title + Chr(34)
    MsgBox Err.Description
    Close #intErrFileNo
End Sub

'刷新数据,保持一致
Private Sub Form_activate()
lblField(0).Caption = "活期"
lblField(1).Caption = "一年"
lblField(2).Caption = "二年"
lblField(3).Caption = "三年"
lblField(4).Caption = "五年"
lblField(5).Caption = "八年"
For i = 0 To 5
    '当前行
    BCAccuralform.DataGrid1.Row = BCAccuralform.CurEm
    '对应列
    BCAccuralform.DataGrid1.Col = i
    txtValue(i) = BCAccuralform.DataGrid1.Text
Next

End Sub


⌨️ 快捷键说明

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