📄 form3.frm
字号:
VERSION 5.00
Begin VB.Form 运动员基本信息
Caption = "运动员基本信息"
ClientHeight = 8025
ClientLeft = 60
ClientTop = 390
ClientWidth = 9120
BeginProperty Font
Name = "宋体"
Size = 21.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
LinkTopic = "Form3"
Picture = "Form3.frx":0000
ScaleHeight = 8025
ScaleWidth = 9120
StartUpPosition = 3 '窗口缺省
Begin VB.ComboBox Combo2
Height = 555
ItemData = "Form3.frx":2FC5F
Left = 2880
List = "Form3.frx":2FC75
TabIndex = 12
Top = 4800
Width = 1815
End
Begin VB.ComboBox Combo1
Height = 555
ItemData = "Form3.frx":2FCA0
Left = 3000
List = "Form3.frx":2FCAD
TabIndex = 11
Top = 3960
Width = 1215
End
Begin VB.TextBox Text3
BeginProperty Font
Name = "宋体"
Size = 21.75
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 555
Left = 2880
TabIndex = 10
Top = 3000
Width = 2295
End
Begin VB.TextBox Text2
BeginProperty Font
Name = "宋体"
Size = 21.75
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 555
Left = 2880
TabIndex = 9
Top = 2160
Width = 2295
End
Begin VB.TextBox Text1
BeginProperty Font
Name = "宋体"
Size = 21.75
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 555
Left = 2880
TabIndex = 8
Top = 1320
Width = 2295
End
Begin VB.CommandButton Command1
Caption = "确认"
Height = 615
Left = 5160
TabIndex = 7
Top = 6960
Width = 1455
End
Begin VB.CommandButton Command2
Caption = "返回"
Height = 615
Left = 7080
TabIndex = 6
Top = 6960
Width = 1455
End
Begin VB.Label Label6
BackStyle = 0 'Transparent
Caption = "参赛项目:"
BeginProperty Font
Name = "宋体"
Size = 18
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF00FF&
Height = 615
Index = 4
Left = 600
TabIndex = 5
Top = 4800
Width = 1575
End
Begin VB.Label Label5
BackStyle = 0 'Transparent
Caption = "性别:"
BeginProperty Font
Name = "宋体"
Size = 18
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF00FF&
Height = 495
Index = 3
Left = 600
TabIndex = 4
Top = 3960
Width = 1575
End
Begin VB.Label Label3
BackStyle = 0 'Transparent
Caption = "学院:"
BeginProperty Font
Name = "宋体"
Size = 18
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF00FF&
Height = 495
Index = 2
Left = 600
TabIndex = 3
Top = 3000
Width = 1575
End
Begin VB.Label Label4
BackStyle = 0 'Transparent
Caption = "运动员编号:"
BeginProperty Font
Name = "宋体"
Size = 18
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF00FF&
Height = 495
Index = 1
Left = 360
TabIndex = 2
Top = 2160
Width = 1815
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "姓名:"
BeginProperty Font
Name = "宋体"
Size = 18
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF00FF&
Height = 495
Index = 0
Left = 600
TabIndex = 1
Top = 1320
Width = 1575
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "运动员基本信息"
BeginProperty Font
Name = "宋体"
Size = 24
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFC0FF&
Height = 615
Left = 2520
TabIndex = 0
Top = 240
Width = 3495
End
End
Attribute VB_Name = "运动员基本信息"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim people As String
Dim tb As ADODB.Command
If Text1 = "" Then
MsgBox "输入的姓名不能为空!"
Exit Sub
End If
If Text2 = "" Then
MsgBox "输入的运动员编号不能为空!"
Exit Sub
End If
If Text3 = "" Then
MsgBox "输入的学院不能为空!"
Exit Sub
End If
If Combo1 = "" Then
MsgBox "请输入性别!!!"
End If
Call OpenDB
Set tb = New ADODB.Command
people = "insert into 运动员信息表(姓名,编号,学院,性别,项目)"
people = people & "Values('" & Text1 & "','" & Text2 & "','" & Text3 & "','" & Combo1 & "','" & Combo2 & "')"
MsgBox "信息输入成功!!!"
Set tb.ActiveConnection = Conn
tb.CommandText = people
tb.Execute
Set tb = Nothing
Conn.Close
Set Conn = Nothing
End Sub
Private Sub Command2_Click()
登入界面.Show
Unload Me
End Sub
Private Sub Label8_Click(Index As Integer)
End Sub
Private Sub Command3_Click()
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -