📄 main_magazine_delete.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{F0D2F211-CCB0-11D0-A316-00AA00688B10}#1.0#0"; "MSDATLST.OCX"
Begin VB.Form Main_Magazine_Delete
BorderStyle = 1 'Fixed Single
ClientHeight = 6075
ClientLeft = 45
ClientTop = 330
ClientWidth = 8235
Icon = "Main_Magazine_Delete.frx":0000
LinkTopic = "Form2"
MaxButton = 0 'False
MinButton = 0 'False
Picture = "Main_Magazine_Delete.frx":000C
ScaleHeight = 6075
ScaleWidth = 8235
StartUpPosition = 1 '所有者中心
Begin VB.TextBox TxtM
BackColor = &H00C0C0C0&
DataField = "创建日期"
DataSource = "Adodc1"
Enabled = 0 'False
Height = 375
Index = 6
Left = 4455
TabIndex = 11
Top = 4080
Width = 3315
End
Begin VB.TextBox TxtM
BackColor = &H00C0C0C0&
DataField = "备注"
DataSource = "Adodc1"
Enabled = 0 'False
Height = 375
Index = 5
Left = 4455
TabIndex = 10
Top = 4635
Width = 3315
End
Begin VB.TextBox TxtM
BackColor = &H00C0C0C0&
DataField = "负责人"
DataSource = "Adodc1"
Enabled = 0 'False
Height = 375
Index = 4
Left = 4455
TabIndex = 9
Top = 3510
Width = 3315
End
Begin VB.TextBox TxtM
BackColor = &H00C0C0C0&
DataField = "刊物类型"
DataSource = "Adodc1"
Enabled = 0 'False
Height = 375
Index = 3
Left = 4455
TabIndex = 8
Top = 2970
Width = 3315
End
Begin VB.TextBox TxtM
BackColor = &H00C0C0C0&
DataField = "所属部门"
DataSource = "Adodc1"
Enabled = 0 'False
Height = 375
Index = 2
Left = 4455
TabIndex = 7
Top = 2400
Width = 3315
End
Begin VB.TextBox TxtM
BackColor = &H00C0C0C0&
DataField = "刊物代码"
DataSource = "Adodc1"
Enabled = 0 'False
Height = 375
Index = 1
Left = 4455
TabIndex = 6
Top = 1785
Width = 3315
End
Begin VB.TextBox TxtM
BackColor = &H00C0C0C0&
DataField = "刊物名称"
DataSource = "Adodc1"
Enabled = 0 'False
Height = 375
Index = 0
Left = 4455
TabIndex = 5
Top = 1215
Width = 3315
End
Begin VB.CommandButton Command1
BackColor = &H00FF8080&
Caption = "确定"
Height = 390
Left = 4245
Style = 1 'Graphical
TabIndex = 1
Top = 5265
Width = 2685
End
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = -840
Top = 915
Visible = 0 'False
Width = 1725
_ExtentX = 3043
_ExtentY = 582
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 1
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;User ID=sa;Data Source=GFGL"
OLEDBString = "Provider=MSDASQL.1;Persist Security Info=False;User ID=sa;Data Source=GFGL"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from 刊物信息表"
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 MSDataListLib.DataList DataList1
Bindings = "Main_Magazine_Delete.frx":A22C0
Height = 4680
Left = 240
TabIndex = 4
Top = 1110
Width = 2445
_ExtentX = 4313
_ExtentY = 8255
_Version = 393216
ListField = "刊物名称"
End
Begin MSAdodcLib.Adodc Adodc2
Height = 330
Left = -570
Top = 1245
Visible = 0 'False
Width = 1725
_ExtentX = 3043
_ExtentY = 582
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 1
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;User ID=sa;Data Source=GFGL"
OLEDBString = "Provider=MSDASQL.1;Persist Security Info=False;User ID=sa;Data Source=GFGL"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from 刊物信息表"
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.Label LblEnd
Alignment = 2 'Center
BackColor = &H000080FF&
BackStyle = 0 'Transparent
BeginProperty Font
Name = "隶书"
Size = 15
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H0000C000&
Height = 375
Left = 5580
TabIndex = 3
Top = 600
Width = 2400
End
Begin VB.Label LblDelete
Alignment = 2 'Center
BackColor = &H000080FF&
BackStyle = 0 'Transparent
BeginProperty Font
Name = "隶书"
Size = 15
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H0000C000&
Height = 375
Left = 3225
TabIndex = 2
Top = 615
Width = 2265
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "刊物名称: 刊物编号: 所属部门: 刊物类型: 负责人 : 创建日期: 备 注 :"
BeginProperty Font
Name = "黑体"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 4005
Left = 3165
TabIndex = 0
Top = 1230
Width = 1365
End
End
Attribute VB_Name = "Main_Magazine_Delete"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
On Error Resume Next
Adodc1.Recordset.Delete
Adodc1.Refresh
Adodc2.Refresh
End Sub
Private Sub DataList1_Click()
Adodc1.RecordSource = "select * from 刊物信息表 where 刊物名称='" + DataList1.Text + "'"
Adodc1.Refresh
End Sub
Private Sub LblDelete_Click()
LblDelete.Caption = "删除刊物"
LblEnd.Caption = ""
End Sub
Private Sub LblEnd_Click()
Frm_Main.Show
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -