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

📄 form7.frm

📁 带界面的银行管理系统。包括客户界面和内部管理界面。采用两种方式来实现数据库的连接和实现。
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form7 
   BackColor       =   &H00FFFFFF&
   Caption         =   "修改"
   ClientHeight    =   5820
   ClientLeft      =   60
   ClientTop       =   435
   ClientWidth     =   7980
   BeginProperty Font 
      Name            =   "楷体_GB2312"
      Size            =   15
      Charset         =   134
      Weight          =   400
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   LinkTopic       =   "Form7"
   Picture         =   "Form7.frx":0000
   ScaleHeight     =   5820
   ScaleWidth      =   7980
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command2 
      BackColor       =   &H00C0E0FF&
      Caption         =   "退出"
      Height          =   855
      Left            =   4080
      Style           =   1  'Graphical
      TabIndex        =   3
      Top             =   3360
      Width           =   1935
   End
   Begin VB.CommandButton Command1 
      BackColor       =   &H00C0E0FF&
      Caption         =   "确定"
      Height          =   855
      Left            =   600
      Style           =   1  'Graphical
      TabIndex        =   2
      Top             =   3360
      Width           =   1935
   End
   Begin VB.TextBox Text1 
      Height          =   615
      Left            =   360
      TabIndex        =   1
      Top             =   1560
      Width           =   4455
   End
   Begin VB.Label Label1 
      Alignment       =   2  'Center
      BackColor       =   &H00FFC0C0&
      Caption         =   "请输入要修改资料的帐号:"
      Height          =   735
      Left            =   360
      TabIndex        =   0
      Top             =   480
      Width           =   3735
   End
End
Attribute VB_Name = "Form7"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim con As New ADODB.Connection
Dim rs As New ADODB.Recordset
Dim rst As New ADODB.Recordset
Dim rstl As New ADODB.Recordset

Private Sub Command1_Click()
con.Open "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=wuhao"

 If Text1.Text = "" Then
        MsgBox "操作帐号不能为空!"
        Text1.SetFocus
 ElseIf Text1.Text < 10 Then
        MsgBox "操作帐号为10位!"
        Text1.SetFocus
Else
rst.Open "select * from worker_xx053_19 where worker_id='" & Trim(Text1.Text) & "'", con, adOpenKeyset, adLockOptimistic


 Unload Me
Form19.Show
Form19.Text1.Text = rst.Fields(0)
Form19.Text2.Text = rst.Fields(1)
Form19.Text3.Text = rst.Fields(2)
Form19.Text4.Text = rst.Fields(3)
Form19.Text5.Text = rst.Fields(4)
Form19.Text8.Text = rst.Fields(5)
rst.Close
End If



End Sub

Private Sub Command2_Click()
Unload Me
Form5.Show
End Sub

Private Sub Form_Load()

End Sub

⌨️ 快捷键说明

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