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

📄 修改.frm

📁 这是一个基于VB开发的程序,实现的是对仪器的查找和定期检修,并对检修的设备进行相关处理
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form Form7 
   BorderStyle     =   0  'None
   Caption         =   "Form7"
   ClientHeight    =   2835
   ClientLeft      =   5550
   ClientTop       =   6720
   ClientWidth     =   4545
   LinkTopic       =   "Form7"
   ScaleHeight     =   2835
   ScaleWidth      =   4545
   ShowInTaskbar   =   0   'False
   Begin VB.TextBox Text3 
      DataField       =   "usernum"
      DataSource      =   "Adodc1"
      Height          =   270
      Left            =   5040
      TabIndex        =   6
      Text            =   "Text3"
      Top             =   1560
      Visible         =   0   'False
      Width           =   255
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   375
      Left            =   1320
      Top             =   3120
      Visible         =   0   'False
      Width           =   1335
      _ExtentX        =   2355
      _ExtentY        =   661
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   2
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\wangyufei\VB编程\050305\登陆.mdb;Persist Security Info=False"
      OLEDBString     =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\wangyufei\VB编程\050305\登陆.mdb;Persist Security Info=False"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "表1"
      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 VB.CommandButton Command2 
      BackColor       =   &H80000013&
      Caption         =   "确认"
      Height          =   375
      Left            =   1440
      Style           =   1  'Graphical
      TabIndex        =   5
      Top             =   2160
      Width           =   855
   End
   Begin VB.CommandButton Command1 
      BackColor       =   &H80000013&
      Caption         =   "取消"
      Height          =   375
      Left            =   2400
      Style           =   1  'Graphical
      TabIndex        =   4
      Top             =   2160
      Width           =   855
   End
   Begin VB.TextBox Text2 
      Height          =   375
      IMEMode         =   3  'DISABLE
      Left            =   1680
      PasswordChar    =   "*"
      TabIndex        =   3
      Top             =   1680
      Width           =   1695
   End
   Begin VB.TextBox Text1 
      BackColor       =   &H00FFFFFF&
      Height          =   375
      Left            =   1680
      TabIndex        =   2
      Top             =   1200
      Width           =   1695
   End
   Begin VB.Label Label3 
      BackStyle       =   0  'Transparent
      Caption         =   "用户资料修改"
      BeginProperty Font 
         Name            =   "华文新魏"
         Size            =   15
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H8000000D&
      Height          =   375
      Left            =   1560
      TabIndex        =   7
      Top             =   600
      Width           =   1815
   End
   Begin VB.Label Label2 
      BackColor       =   &H00FFFFFF&
      BackStyle       =   0  'Transparent
      Caption         =   "新密码:"
      ForeColor       =   &H8000000D&
      Height          =   255
      Left            =   840
      TabIndex        =   1
      Top             =   1800
      Width           =   735
   End
   Begin VB.Label Label1 
      BackStyle       =   0  'Transparent
      Caption         =   "新用户名:"
      ForeColor       =   &H8000000D&
      Height          =   255
      Left            =   720
      TabIndex        =   0
      Top             =   1320
      Width           =   855
   End
   Begin VB.Image Image1 
      Height          =   2850
      Left            =   0
      Picture         =   "修改.frx":0000
      Top             =   0
      Width           =   4545
   End
End
Attribute VB_Name = "Form7"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim tt As Integer

Private Sub Command1_Click()
main.Enabled = True
Unload Form7
End Sub

Private Sub Command2_Click()
tt = 0
Adodc1.Recordset.MoveFirst
Do While Not Adodc1.Recordset.EOF
If Adodc1.Recordset.Fields("usernum") = Text1.Text Then
MsgBox " 此用户名已存在!", vbCritical, "失败"
t = t + 1
Text1.Text = ""
Text2.Text = ""
GoTo err
Else
Adodc1.Recordset.MoveNext
End If
Loop
If tt = 0 Then
If Len(Text2.Text) < 4 Then
MsgBox " 密码位数不能少于4位!", vbCritical, "失败"
Text2.Text = ""
Else
Form8.Text1.Text = Text1.Text
Form8.Text2.Text = Text2.Text
'
Form8.Adodc1.Recordset.MoveFirst
'

MsgBox " 修改成功!"
Unload Me
Text1.Text = ""
Text2.Text = ""
End If
End If
err:
End Sub

Private Sub Command3_Click()
Unload Form7
End Sub

Private Sub Form_Load()
Text1.Text = ""
Text2.Text = ""
main.Enabled = False
End Sub

⌨️ 快捷键说明

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