📄 for_distrubute2.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form Frm_Distrubute2
ClientHeight = 3195
ClientLeft = 6390
ClientTop = 3975
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3195
ScaleWidth = 4680
Begin VB.Frame Fra_Namechange
Caption = "更改登入名"
Height = 2295
Left = 480
TabIndex = 0
Top = 360
Width = 3735
Begin VB.CommandButton Cmd_Quit
Caption = "退 出"
Height = 375
Left = 2160
TabIndex = 3
Top = 1560
Width = 1095
End
Begin VB.CommandButton Cmd_change
Caption = "更 改"
Height = 375
Left = 480
TabIndex = 2
Top = 1560
Width = 1095
End
Begin VB.TextBox Tex_Newname
Height = 375
Left = 1680
TabIndex = 1
Top = 600
Width = 1815
End
Begin VB.Label Lab_Newname
Caption = "请输入新的登入名"
Height = 495
Left = 120
TabIndex = 4
Top = 720
Width = 1455
End
End
Begin MSAdodcLib.Adodc Adodc1
Height = 735
Left = 1560
Top = 1560
Width = 1575
_ExtentX = 2778
_ExtentY = 1296
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
End
Attribute VB_Name = "Frm_Distrubute2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim AdoGen As Adodc
Private Sub Cmd_change_Click()
SQL = "select * from 读者情况表 "
Set AdoGeneral = Frm_Settings.Ado_ReaderInfo
Call SqlLoad(SQL)
Frm_Settings.Ado_ReaderInfo.Recordset.Find "借书证号 ='" & UserCardNum & " '"
Frm_Settings.Ado_ReaderInfo.Recordset.Fields(0) = Tex_Newname.Text
AdoGeneral.Recordset.UpdateBatch adAffectCurrent
Frm_Settings.Ado_ReaderInfo.Refresh
Print Tex_Newname.Text
MsgBox "你的用户名已经成功更改为" & Trim(Tex_Newname.Text), vbInformation, "提示"
End Sub
Private Sub Cmd_Quit_Click()
UserName = Tex_Newname.Text
Unload Me
Frm_Settings.Show
SQL = SQL + "where 借书证号 ='" & UserCardNum & " '"
Set AdoGeneral = Frm_Settings.Ado_ReaderInfo
Call SqlLoad(SQL)
End Sub
Private Sub Form_Load()
'SQL = "select 学生情况表.借书证号,学生情况表.借书证密码,读者情况表.用户名 from 学生情况表,读者情况表 "
'SQL = SQL + "where 学生情况表.借书证号=读者情况表.借书证号"
'SQL = SQL + " and 读者情况表.借书证号 = '" & UserName & " '"
'Set AdoGeneral = Adodc1
'Call SqlLoad(SQL)
'Tex_Newname.Text = ""
' Tex_Newname.SetFocus
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -