?? 管理人才信息刪除.frm
字號:
VERSION 5.00
Begin VB.Form 管理人才信息刪除
BackColor = &H80000004&
Caption = "管理人才信息刪除"
ClientHeight = 8430
ClientLeft = 60
ClientTop = 345
ClientWidth = 11985
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Icon = "管理人才信息刪除.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 562
ScaleMode = 3 'Pixel
ScaleWidth = 799
Begin VB.CommandButton Command4
Caption = "前一記錄"
Height = 375
Left = 6390
TabIndex = 35
Top = 7500
Width = 1185
End
Begin VB.CommandButton Command2
Caption = "下一記錄"
Height = 375
Left = 7680
TabIndex = 34
Top = 7500
Width = 1185
End
Begin VB.PictureBox Picture1
BorderStyle = 0 'None
Height = 1455
Left = 10320
Picture = "管理人才信息刪除.frx":0442
ScaleHeight = 1455
ScaleWidth = 1425
TabIndex = 33
Top = 750
Width = 1425
End
Begin VB.CommandButton Command1
Caption = "刪 除"
Height = 375
Left = 9000
TabIndex = 32
Top = 7500
Width = 975
End
Begin VB.TextBox Text15
DataField = "技術職稱"
DataSource = "Data1"
Height = 315
Left = 8250
Locked = -1 'True
TabIndex = 31
Top = 1350
Width = 1695
End
Begin VB.TextBox Text14
DataField = "政治面貌"
DataSource = "Data1"
Height = 315
Left = 4980
Locked = -1 'True
TabIndex = 30
Top = 1320
Width = 1935
End
Begin VB.TextBox Text13
DataField = "文化程度"
DataSource = "Data1"
Height = 315
Left = 1140
Locked = -1 'True
TabIndex = 29
Top = 1320
Width = 1635
End
Begin VB.TextBox Text12
DataField = "性別"
DataSource = "Data1"
Height = 315
Left = 3000
Locked = -1 'True
TabIndex = 28
Top = 660
Width = 555
End
Begin VB.Data Data1
Caption = "Data1"
Connect = "Access"
DatabaseName = ""
DefaultCursorType= 0 '缺省游標
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 405
Left = 990
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = "管理人才"
Top = 7560
Visible = 0 'False
Width = 1920
End
Begin VB.Frame Frame1
Caption = "簡要經歷"
Height = 3465
Left = 210
TabIndex = 26
Top = 3630
Width = 11415
Begin VB.TextBox Text11
Appearance = 0 'Flat
BorderStyle = 0 'None
DataField = "簡要經歷"
DataSource = "Data1"
Height = 3075
Left = 120
Locked = -1 'True
MaxLength = 300
MultiLine = -1 'True
TabIndex = 27
Top = 240
Width = 11115
End
End
Begin VB.TextBox Text3
DataField = "月"
DataSource = "Data1"
Height = 315
Left = 7620
Locked = -1 'True
TabIndex = 25
Top = 690
Width = 675
End
Begin VB.TextBox Text2
DataField = "年"
DataSource = "Data1"
Height = 315
Left = 5880
Locked = -1 'True
TabIndex = 24
Top = 690
Width = 975
End
Begin VB.TextBox Text8
DataField = "號"
DataSource = "Data1"
Height = 315
Left = 7200
Locked = -1 'True
TabIndex = 19
Top = 2100
Width = 1035
End
Begin VB.TextBox Text6
DataField = "區"
DataSource = "Data1"
Height = 315
Left = 3180
Locked = -1 'True
TabIndex = 17
Top = 2100
Width = 975
End
Begin VB.TextBox Text7
DataField = "街"
DataSource = "Data1"
Height = 315
Left = 5010
Locked = -1 'True
TabIndex = 15
Top = 2070
Width = 915
End
Begin VB.TextBox Text9
DataField = "類別"
DataSource = "Data1"
BeginProperty Font
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 330
Left = 1950
Locked = -1 'True
TabIndex = 9
Top = 2880
Width = 9375
End
Begin VB.TextBox Text4
DataField = "日"
DataSource = "Data1"
Height = 315
Left = 8760
Locked = -1 'True
TabIndex = 8
Top = 690
Width = 495
End
Begin VB.CommandButton Command3
Caption = "返 回"
Height = 375
Left = 10140
TabIndex = 7
Top = 7500
Width = 975
End
Begin VB.TextBox Text5
DataField = "縣(市)"
DataSource = "Data1"
BeginProperty Font
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Left = 1140
Locked = -1 'True
TabIndex = 6
Top = 2100
Width = 1035
End
Begin VB.TextBox Text1
DataField = "姓名"
DataSource = "Data1"
BeginProperty Font
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 270
Left = 1260
Locked = -1 'True
TabIndex = 5
Top = 675
Width = 735
End
Begin VB.Label Label3
BackStyle = 0 'Transparent
Caption = "類 別"
Height = 375
Left = 120
TabIndex = 23
Top = 2880
Width = 1815
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "姓 名"
Height = 375
Left = 120
TabIndex = 22
Top = 750
Width = 915
End
Begin VB.Label Label23
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "管理人才信息刪除"
BeginProperty Font
Name = "隸書"
Size = 24
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 480
Left = 3840
TabIndex = 21
Top = -30
Width = 3840
End
Begin VB.Label Label33
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "號"
Height = 210
Left = 8460
TabIndex = 20
Top = 2100
Width = 210
End
Begin VB.Label Label32
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "街(路)"
Height = 210
Left = 6120
TabIndex = 18
Top = 2100
Width = 840
End
Begin VB.Label Label31
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "區(鎮)"
Height = 210
Left = 4260
TabIndex = 16
Top = 2100
Width = 840
End
Begin VB.Label Label30
BackStyle = 0 'Transparent
Caption = "市(縣)"
Height = 375
Left = 2400
TabIndex = 14
Top = 2100
Width = 855
End
Begin VB.Label Label7
BackStyle = 0 'Transparent
Caption = "出生年月"
Height = 375
Left = 4740
TabIndex = 13
Top = 750
Width = 1035
End
Begin VB.Label lable25
BackStyle = 0 'Transparent
Caption = "年"
Height = 375
Left = 7200
TabIndex = 12
Top = 750
Width = 375
End
Begin VB.Label Label25
BackStyle = 0 'Transparent
Caption = "月"
Height = 375
Left = 8400
TabIndex = 11
Top = 750
Width = 255
End
Begin VB.Label Label26
BackStyle = 0 'Transparent
Caption = "日"
Height = 375
Left = 9420
TabIndex = 10
Top = 750
Width = 375
End
Begin VB.Line Line1
BorderColor = &H00FFFFFF&
BorderWidth = 2
X1 = 4
X2 = 1027
Y1 = 36
Y2 = 36
End
Begin VB.Label Label8
BackStyle = 0 'Transparent
Caption = "政治面貌"
Height = 375
Left = 3600
TabIndex = 4
Top = 1350
Width = 1215
End
Begin VB.Label Label6
BackStyle = 0 'Transparent
Caption = "技術職稱"
Height = 375
Left = 7230
TabIndex = 3
Top = 1350
Width = 1035
End
Begin VB.Label Label5
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "通訊地址:"
Height = 210
Left = 120
TabIndex = 2
Top = 2100
Width = 1050
End
Begin VB.Label Label4
BackStyle = 0 'Transparent
Caption = "文化程度"
Height = 375
Left = 120
TabIndex = 1
Top = 1320
Width = 975
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "性別"
Height = 375
Left = 2340
TabIndex = 0
Top = 750
Width = 615
End
End
Attribute VB_Name = "管理人才信息刪除"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim t1 As Integer
Private Sub Command1_Click()
Dim Loc As Long
On Error GoTo A1
Loc = Data1.Recordset.AbsolutePosition
Data1.Recordset.Edit
Data1.Recordset.Delete
Data1.Recordset.MoveLast
Data1.Recordset.MoveFirst
If Data1.Recordset.RecordCount = Loc Then
Loc = Loc - 1
End If
Data1.Recordset.Move Loc
Exit Sub
A1:
t1 = MsgBox("數據已經被全部刪除 !", vbOKOnly + vbExclamation)
Exit Sub
End Sub
Private Sub Command3_Click()
Data1.Recordset.Close
Unload Me
管理人才主菜單.Show
End Sub
Private Sub Form_Load()
On Error GoTo A1
A = Me.hwnd
B = 0
Disabled A, B
Data1.DatabaseName = App.Path + "\" + "人才庫.mdb"
Data1.Refresh
Data1.Recordset.MoveLast
Data1.Recordset.MoveFirst
Data1.Recordset.Edit
Exit Sub
A1:
Exit Sub
End Sub
Private Sub Command2_Click()
On Error GoTo A1
If Data1.Recordset.AbsolutePosition < Data1.Recordset.RecordCount - 1 Then
Data1.Recordset.MoveNext
Else
t1 = MsgBox(" 已經是最后一條記錄 !", vbOKOnly + vbExclamation)
End If
Exit Sub
A1:
MsgBox " 數據庫中無記錄 !"
Exit Sub
End Sub
Private Sub Command4_Click()
On Error GoTo A1
If Data1.Recordset.AbsolutePosition > 0 Then
Data1.Recordset.MovePrevious
Else
t1 = MsgBox(" 已經是第一條記錄 !", vbOKOnly + vbExclamation)
End If
Exit Sub
A1:
MsgBox " 數據庫中無記錄 !"
Exit Sub
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -