📄 确定修改.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form Form13
BackColor = &H00FFFFC0&
Caption = "确定修改"
ClientHeight = 4320
ClientLeft = 60
ClientTop = 450
ClientWidth = 6585
LinkTopic = "Form13"
ScaleHeight = 4320
ScaleWidth = 6585
StartUpPosition = 1 '所有者中心
Begin MSAdodcLib.Adodc Adodc1
Height = 495
Left = 3960
Top = 3000
Visible = 0 'False
Width = 1215
_ExtentX = 2143
_ExtentY = 873
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 = "Provider=MSDASQL.1;Persist Security Info=False;Data Source=fsm"
OLEDBString = "Provider=MSDASQL.1;Persist Security Info=False;Data Source=fsm"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from archives"
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.TextBox Text1
DataField = "ano"
Height = 375
Left = 2640
TabIndex = 13
Top = 360
Width = 1695
End
Begin VB.CommandButton Command3
Caption = "查找"
Height = 375
Left = 4800
TabIndex = 12
Top = 360
Width = 1095
End
Begin VB.TextBox Text6
DataField = "asno"
Height = 375
Left = 4320
TabIndex = 6
Top = 2160
Width = 1335
End
Begin VB.TextBox Text5
DataField = "room"
Height = 375
Left = 4320
TabIndex = 5
Top = 1200
Width = 1335
End
Begin VB.TextBox Text4
DataField = "appearence"
Height = 375
Left = 1320
TabIndex = 4
Top = 3120
Width = 1455
End
Begin VB.TextBox Text3
DataField = "dno"
Height = 285
Left = 1320
TabIndex = 3
Top = 2160
Width = 1455
End
Begin VB.CommandButton Command2
Caption = "取消"
Height = 375
Left = 4560
TabIndex = 2
Top = 3600
Width = 975
End
Begin VB.CommandButton Command1
Caption = "确定修改"
Height = 375
Left = 3240
TabIndex = 1
Top = 3600
Width = 975
End
Begin VB.TextBox Text2
DataField = "aname"
Height = 375
Left = 1320
TabIndex = 0
Top = 1200
Width = 1455
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "请输入要修改档案的全宗号:"
Height = 495
Left = 240
TabIndex = 14
Top = 360
Width = 2415
End
Begin VB.Label Label6
BackStyle = 0 'Transparent
Caption = "档案状态"
Height = 375
Left = 3120
TabIndex = 11
Top = 2160
Width = 975
End
Begin VB.Label Label5
BackStyle = 0 'Transparent
Caption = "存放地点"
Height = 375
Left = 3120
TabIndex = 10
Top = 1200
Width = 975
End
Begin VB.Label Label4
BackStyle = 0 'Transparent
Caption = "入馆时间"
Height = 255
Left = 240
TabIndex = 9
Top = 3120
Width = 735
End
Begin VB.Label Label3
BackStyle = 0 'Transparent
Caption = "部门编号"
Height = 255
Left = 240
TabIndex = 8
Top = 2160
Width = 855
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "档案名称:"
Height = 255
Left = 120
TabIndex = 7
Top = 1320
Width = 975
End
End
Attribute VB_Name = "Form13"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Adodc1.RecordSource = "updata archives set aname = '" & Text2.Text & "'"
Adodc1.RecordSource = "updata archives set dno = '" & Text3.Text & "'"
Adodc1.RecordSource = "updata archives set appearence = '" & Text4.Text & "'"
Adodc1.RecordSource = "updata archives set room = '" & Text5.Text & "'"
Adodc1.RecordSource = "updata archives set asno = '" & Text6.Text & "'"
MsgBox "修改成功"
End Sub
Private Sub Command2_Click()
Unload Me
Exit Sub
End Sub
Private Sub Command3_Click()
Adodc1.RecordSource = "select * from archives WHERE ano = '" & Text1.Text & "'"
Adodc1.Refresh
If Adodc1.Recordset.RecordCount > 0 Then
Set Text2.DataSource = Adodc1
Set Text3.DataSource = Adodc1
Set Text4.DataSource = Adodc1
Set Text5.DataSource = Adodc1
Set Text6.DataSource = Adodc1
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -