📄 form11.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 3090
ClientLeft = 60
ClientTop = 450
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3090
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command4
Caption = "Command4"
Height = 615
Left = 600
TabIndex = 3
Top = 2160
Width = 1935
End
Begin VB.CommandButton Command3
Caption = "删除所有记录"
Height = 615
Left = 480
TabIndex = 2
Top = 1440
Width = 2295
End
Begin VB.CommandButton Command2
Caption = "删除条件记录"
Height = 615
Left = 360
TabIndex = 1
Top = 840
Width = 2295
End
Begin VB.CommandButton Command1
Caption = "添加一条记录"
Height = 615
Left = 360
TabIndex = 0
Top = 120
Width = 2295
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Form2.Show
End Sub
Private Sub Command2_Click()
Form3.Show
End Sub
Private Sub Command3_Click()
Dim cnn As New ADODB.Connection
Dim rs As New ADODB.Recordset
cnn.Open "provider=sqloledb;server=(local);uid=sa;pwd=;database=student"
rs.Open "select * from 学生", cnn, adOpenKeyset, adLockOptimistic, adCmdText
Do Until rs.EOF
rs.Delete
rs.MoveNext
Loop
rs.Close
cnn.Close
Unload Me
End Sub
Private Sub Command4_Click()
Form4.Show
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -