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

📄 form_bank.frm

📁 一个小小的家庭理财助手软件的VB代码。用vb6.0开发
💻 FRM
📖 第 1 页 / 共 3 页
字号:
         Left            =   360
         TabIndex        =   36
         Top             =   960
         Width           =   975
      End
      Begin VB.Label Label9 
         Caption         =   "定期账号"
         Height          =   375
         Left            =   360
         TabIndex        =   35
         Top             =   360
         Width           =   1095
      End
   End
   Begin VB.Frame Frame1 
      Height          =   5895
      Left            =   120
      TabIndex        =   1
      Top             =   360
      Width           =   9135
      Begin VB.CommandButton Command3 
         Caption         =   "删除"
         Height          =   375
         Left            =   7320
         TabIndex        =   11
         Top             =   1320
         Width           =   1095
      End
      Begin VB.CommandButton Command2 
         Caption         =   "修改"
         Height          =   375
         Left            =   7320
         TabIndex        =   10
         Top             =   840
         Width           =   1095
      End
      Begin VB.CommandButton Command1 
         Caption         =   "添加"
         Height          =   375
         Left            =   7320
         TabIndex        =   9
         Top             =   360
         Width           =   1095
      End
      Begin VB.TextBox Text_Bank_Bank 
         Height          =   375
         Left            =   5160
         TabIndex        =   8
         Top             =   1560
         Width           =   1455
      End
      Begin VB.TextBox Text_Bank_Left 
         Height          =   375
         Left            =   5160
         TabIndex        =   7
         Top             =   960
         Width           =   1455
      End
      Begin VB.TextBox Text_Bank_Money 
         Height          =   375
         Left            =   5160
         TabIndex        =   6
         Top             =   360
         Width           =   1455
      End
      Begin VB.TextBox Text_Bank_Name 
         Height          =   375
         Left            =   1920
         TabIndex        =   5
         Top             =   2160
         Width           =   1335
      End
      Begin VB.TextBox Text_Bank_No 
         Height          =   375
         Left            =   1920
         TabIndex        =   4
         Top             =   1560
         Width           =   1335
      End
      Begin VB.TextBox Text_Bank_Type 
         Height          =   375
         Left            =   1920
         TabIndex        =   3
         Top             =   960
         Width           =   1335
      End
      Begin VB.TextBox Text_Bank_Num 
         Height          =   375
         Left            =   1920
         TabIndex        =   2
         Top             =   360
         Width           =   1335
      End
      Begin MSAdodcLib.Adodc Adodc_bank 
         Height          =   330
         Left            =   5040
         Top             =   3000
         Visible         =   0   'False
         Width           =   1200
         _ExtentX        =   2117
         _ExtentY        =   582
         ConnectMode     =   0
         CursorLocation  =   3
         IsolationLevel  =   -1
         ConnectionTimeout=   15
         CommandTimeout  =   30
         CursorType      =   3
         LockType        =   3
         CommandType     =   8
         CursorOptions   =   0
         CacheSize       =   50
         MaxRecords      =   0
         BOFAction       =   0
         EOFAction       =   0
         ConnectStringType=   1
         Appearance      =   1
         BackColor       =   -2147483643
         ForeColor       =   -2147483640
         Orientation     =   0
         Enabled         =   -1
         Connect         =   ""
         OLEDBString     =   ""
         OLEDBFile       =   ""
         DataSourceName  =   ""
         OtherAttributes =   ""
         UserName        =   ""
         Password        =   ""
         RecordSource    =   ""
         Caption         =   "Adodc1"
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         _Version        =   393216
      End
      Begin MSComCtl2.DTPicker DTPicker_Bank 
         Height          =   375
         Left            =   5160
         TabIndex        =   12
         Top             =   2160
         Width           =   1455
         _ExtentX        =   2566
         _ExtentY        =   661
         _Version        =   393216
         Format          =   64159745
         CurrentDate     =   39385
         MaxDate         =   73050
         MinDate         =   36526
      End
      Begin MSDataGridLib.DataGrid DataGrid_bank 
         Bindings        =   "Form_bank.frx":001A
         Height          =   3015
         Left            =   240
         TabIndex        =   13
         Top             =   2760
         Width           =   8655
         _ExtentX        =   15266
         _ExtentY        =   5318
         _Version        =   393216
         AllowUpdate     =   0   'False
         HeadLines       =   1
         RowHeight       =   15
         BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ColumnCount     =   2
         BeginProperty Column00 
            DataField       =   ""
            Caption         =   ""
            BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
               Type            =   0
               Format          =   ""
               HaveTrueFalseNull=   0
               FirstDayOfWeek  =   0
               FirstWeekOfYear =   0
               LCID            =   2052
               SubFormatType   =   0
            EndProperty
         EndProperty
         BeginProperty Column01 
            DataField       =   ""
            Caption         =   ""
            BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
               Type            =   0
               Format          =   ""
               HaveTrueFalseNull=   0
               FirstDayOfWeek  =   0
               FirstWeekOfYear =   0
               LCID            =   2052
               SubFormatType   =   0
            EndProperty
         EndProperty
         SplitCount      =   1
         BeginProperty Split0 
            BeginProperty Column00 
            EndProperty
            BeginProperty Column01 
            EndProperty
         EndProperty
      End
      Begin VB.Label Label8 
         Caption         =   "开户日期:"
         Height          =   375
         Left            =   3720
         TabIndex        =   21
         Top             =   2280
         Width           =   1215
      End
      Begin VB.Label Label7 
         Caption         =   "开户银行:"
         Height          =   375
         Left            =   3720
         TabIndex        =   20
         Top             =   1640
         Width           =   1095
      End
      Begin VB.Label Label6 
         Caption         =   "余额:"
         Height          =   375
         Left            =   3720
         TabIndex        =   19
         Top             =   1000
         Width           =   1215
      End
      Begin VB.Label Label5 
         Caption         =   "初始金额:"
         Height          =   375
         Left            =   3720
         TabIndex        =   18
         Top             =   360
         Width           =   1095
      End
      Begin VB.Label Label4 
         Caption         =   "帐户户主姓名:"
         Height          =   375
         Left            =   360
         TabIndex        =   17
         Top             =   2280
         Width           =   1455
      End
      Begin VB.Label Label3 
         Caption         =   "卡号:"
         Height          =   375
         Left            =   360
         TabIndex        =   16
         Top             =   1680
         Width           =   1095
      End
      Begin VB.Label Label2 
         Caption         =   "帐户类型:"
         Height          =   375
         Left            =   360
         TabIndex        =   15
         Top             =   1080
         Width           =   1095
      End
      Begin VB.Label Label1 
         Caption         =   "活期账号:"
         Height          =   375
         Left            =   360
         TabIndex        =   14
         Top             =   480
         Width           =   1095
      End
   End
End
Attribute VB_Name = "Form_bank"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub command1_Click()             '添加一个活期帐户记录
Dim sqlstr As String
Dim rsdb As New ADODB.Recordset
'判断该账户是否已经存在

rsdb.Open "select * from LiveBank where LiveBankNo =" & _
Val(Me.Text_Bank_Num.Text), RemoteCnn, adOpenStatic, adLockReadOnly, -1
If rsdb.RecordCount > 0 Then
    MsgBox "已经存在该账号!"
    Exit Sub
End If
rsdb.Close


⌨️ 快捷键说明

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