?? dasc.frm
字號:
VERSION 5.00
Begin VB.Form 檔案刪除
Caption = "學(xué)籍管理-檔案刪除"
ClientHeight = 7545
ClientLeft = 60
ClientTop = 450
ClientWidth = 7965
LinkTopic = "Form12"
ScaleHeight = 7545
ScaleWidth = 7965
StartUpPosition = 3 '窗口缺省
Begin VB.Frame Frame5
Caption = "基本信息"
Height = 1815
Left = 0
TabIndex = 27
Top = 1680
Width = 7935
Begin VB.TextBox Text16
Height = 315
Left = 6600
TabIndex = 40
Text = "Text16"
Top = 330
Width = 945
End
Begin VB.TextBox Text1
Height = 315
Left = 780
TabIndex = 32
Text = "Text1"
Top = 300
Width = 2055
End
Begin VB.TextBox Text2
Height = 315
Left = 3780
TabIndex = 31
Text = "Text2"
Top = 300
Width = 1815
End
Begin VB.TextBox Text3
Height = 315
Left = 780
TabIndex = 30
Text = "Text3"
Top = 780
Width = 1935
End
Begin VB.TextBox Text4
Height = 315
Left = 1020
TabIndex = 29
Text = "Text4"
Top = 1320
Width = 1875
End
Begin VB.TextBox Text5
Height = 315
Left = 3780
TabIndex = 28
Text = "Text5"
Top = 780
Width = 1095
End
Begin VB.Label Label18
Caption = "學(xué)號"
Height = 315
Left = 120
TabIndex = 38
Top = 360
Width = 435
End
Begin VB.Label Label17
Caption = "姓名"
Height = 315
Left = 3120
TabIndex = 37
Top = 360
Width = 555
End
Begin VB.Label Label16
Caption = "性別"
Height = 315
Left = 6060
TabIndex = 36
Top = 360
Width = 555
End
Begin VB.Label Label5
Caption = "民族"
Height = 315
Left = 120
TabIndex = 35
Top = 840
Width = 555
End
Begin VB.Label Label6
Caption = "出生日期"
Height = 315
Left = 120
TabIndex = 34
Top = 1380
Width = 855
End
Begin VB.Label Label7
Caption = "血型"
Height = 315
Left = 3120
TabIndex = 33
Top = 840
Width = 555
End
End
Begin VB.Frame Frame2
Caption = "專業(yè)信息"
Height = 1035
Left = 0
TabIndex = 20
Top = 3540
Width = 7935
Begin VB.TextBox Text6
Height = 315
Left = 810
TabIndex = 23
Text = "Text6"
Top = 240
Width = 1995
End
Begin VB.TextBox Text7
Height = 315
Left = 4140
TabIndex = 22
Text = "Text7"
Top = 240
Width = 2235
End
Begin VB.TextBox Text8
Height = 315
Left = 780
TabIndex = 21
Text = "Text8"
Top = 600
Width = 1995
End
Begin VB.Label Label9
Caption = "院系"
Height = 315
Left = 120
TabIndex = 26
Top = 300
Width = 555
End
Begin VB.Label Label10
Caption = "專業(yè)"
Height = 315
Left = 3540
TabIndex = 25
Top = 360
Width = 615
End
Begin VB.Label Label11
Caption = "班級"
Height = 315
Left = 120
TabIndex = 24
Top = 660
Width = 495
End
End
Begin VB.Frame Frame3
Caption = "住址信息"
Height = 1215
Left = 0
TabIndex = 11
Top = 4620
Width = 7935
Begin VB.TextBox Text9
Height = 315
Left = 780
TabIndex = 15
Text = "Text9"
Top = 240
Width = 1515
End
Begin VB.TextBox Text10
Height = 315
Left = 3330
TabIndex = 14
Text = "Text10"
Top = 240
Width = 1515
End
Begin VB.TextBox Text11
Height = 315
Left = 5700
TabIndex = 13
Text = "Text11"
Top = 240
Width = 2115
End
Begin VB.TextBox Text12
Height = 315
Left = 960
TabIndex = 12
Text = "Text12"
Top = 780
Width = 6795
End
Begin VB.Label Label12
Caption = "電話"
Height = 315
Left = 120
TabIndex = 19
Top = 300
Width = 555
End
Begin VB.Label Label13
Caption = "郵編"
Height = 315
Left = 2700
TabIndex = 18
Top = 300
Width = 495
End
Begin VB.Label Label14
Caption = "籍貫"
Height = 315
Left = 5220
TabIndex = 17
Top = 360
Width = 495
End
Begin VB.Label Label15
Caption = "家庭住址"
Height = 315
Left = 120
TabIndex = 16
Top = 780
Width = 795
End
End
Begin VB.Frame Frame4
Caption = "備注"
Height = 1635
Left = 0
TabIndex = 9
Top = 5880
Width = 7935
Begin VB.TextBox Text13
Height = 1275
Left = 120
TabIndex = 10
Text = "Text13"
Top = 240
Width = 7755
End
End
Begin VB.Frame Frame1
Caption = "輸入查找信息"
Height = 1065
Left = 0
TabIndex = 1
Top = 570
Width = 7905
Begin VB.CommandButton Command3
Caption = "返回"
Height = 345
Left = 7170
TabIndex = 39
Top = 270
Width = 645
End
Begin VB.CommandButton Command2
Caption = "刪除"
Height = 345
Left = 6390
TabIndex = 7
Top = 270
Width = 615
End
Begin VB.CommandButton Command1
Caption = "查找"
Height = 345
Left = 5460
TabIndex = 6
Top = 270
Width = 705
End
Begin VB.TextBox Text15
Height = 315
Left = 3120
TabIndex = 5
Text = "Text15"
Top = 300
Width = 1995
End
Begin VB.TextBox Text14
Height = 315
Left = 630
TabIndex = 3
Text = "Text14"
Top = 300
Width = 1605
End
Begin VB.Label Label4
Caption = "學(xué)號,姓名必輸入"
Height = 345
Left = 180
TabIndex = 8
Top = 690
Width = 3015
End
Begin VB.Label Label3
Caption = "姓名"
Height = 255
Left = 2640
TabIndex = 4
Top = 360
Width = 465
End
Begin VB.Label Label2
Caption = "學(xué)號"
Height = 255
Left = 180
TabIndex = 2
Top = 360
Width = 465
End
End
Begin VB.Label Label1
Alignment = 2 'Center
Caption = "檔 案 刪 除"
BeginProperty Font
Name = "黑體"
Size = 15.75
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 0
TabIndex = 0
Top = 30
Width = 7905
End
End
Attribute VB_Name = "檔案刪除"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim mrc As ADODB.Recordset
Private Sub Command1_Click()
If Text14.Text = "" Then
MsgBox " 輸入查找學(xué)號!", vbExclamation + vbOKOnly, "警告"
Text14.SetFocus
Exit Sub
End If
If Text15.Text = "" Then
MsgBox " 輸入查找姓名!", vbExclamation + vbOKOnly, "警告"
Text15.SetFocus
Exit Sub
End If
txtsql = "select a.學(xué)號,a.姓名,a.性別,a.民族,a.血型,a.出生年月,b.院系名稱,c.專業(yè)名稱,d.班級名稱,a.聯(lián)系電話,a.郵編,a.籍貫,a.家庭住址,a.備注 from 學(xué)生基本信息 a,院系 b,專業(yè) c,班級 d where a.院系代碼=b.院系代碼 and a.專業(yè)代碼=c.專業(yè)代碼 and a.班級代碼=d.班級代碼 and a.學(xué)號='" & Trim(Text14.Text) & "' and a.姓名='" & Trim(Text15.Text) & "'"
Set mrc = ExecuteSQL(txtsql)
If Not mrc.EOF Then
Text1.Text = mrc.Fields(0)
Text2.Text = mrc.Fields(1)
Text16.Text = mrc.Fields(2)
Text3.Text = mrc.Fields(3)
Text5.Text = mrc.Fields(4)
Text4.Text = mrc.Fields(5)
Text6.Text = mrc.Fields(6)
Text7.Text = mrc.Fields(7)
Text8.Text = mrc.Fields(8)
Text9.Text = mrc.Fields(9)
Text10.Text = mrc.Fields(10)
Text11.Text = mrc.Fields(11)
Text12.Text = mrc.Fields(12)
Text13.Text = mrc.Fields(13)
Me.sz
Else
MsgBox " 不存在該檔案!", vbExclamation + vbOKOnly, "警告"
Text14.SetFocus
Text14.Text = ""
Text15.Text = ""
Exit Sub
End If
End Sub
Public Sub sz()
Text1.Enabled = False
Text2.Enabled = False
Text3.Enabled = False
Text4.Enabled = False
Text5.Enabled = False
Text6.Enabled = False
Text7.Enabled = False
Text8.Enabled = False
Text9.Enabled = False
Text10.Enabled = False
Text11.Enabled = False
Text12.Enabled = False
Text13.Enabled = False
Text16.Enabled = False
End Sub
Public Sub qk()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
Text9.Text = ""
Text10.Text = ""
Text11.Text = ""
Text12.Text = ""
Text13.Text = ""
Text14.Text = ""
Text15.Text = ""
Text16.Text = ""
End Sub
Private Sub Command2_Click()
mrc.Delete
Me.qk
Command1.Enabled = True
Command2.Enabled = False
Command3.Enabled = True
End Sub
Private Sub Command3_Click()
Unload Me
End Sub
Private Sub Form_Load()
'Text1.Enabled = False
Me.qk
Command1.Enabled = True
Command2.Enabled = False
Command3.Enabled = True
End Sub
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -