Form7.frm
资源名称:2005.rar [点击查看]
上传用户:salesll
上传日期:2014-07-25
资源大小:2665k
文件大小:4k
源码类别:
交通/航空行业
开发平台:
Others
- VERSION 5.00
- Begin VB.Form Form7
- BackColor = &H00FFFF00&
- Caption = "司机档案添加"
- ClientHeight = 4995
- ClientLeft = 60
- ClientTop = 420
- ClientWidth = 7455
- FillColor = &H00FFFFFF&
- LinkTopic = "Form7"
- ScaleHeight = 4995
- ScaleWidth = 7455
- StartUpPosition = 3 '窗口缺省
- Begin VB.CommandButton Command2
- Caption = "取消"
- Height = 495
- Left = 5520
- TabIndex = 11
- Top = 3600
- Width = 1455
- End
- Begin VB.CommandButton Command1
- Caption = "添加"
- Height = 495
- Left = 5520
- TabIndex = 10
- Top = 1080
- Width = 1455
- End
- Begin VB.TextBox Text5
- Height = 495
- Left = 1080
- TabIndex = 9
- Top = 4320
- Width = 3135
- End
- Begin VB.TextBox Text4
- Height = 495
- Left = 1080
- TabIndex = 8
- Top = 3240
- Width = 3135
- End
- Begin VB.TextBox Text3
- Height = 495
- Left = 1080
- TabIndex = 5
- Top = 2160
- Width = 3135
- End
- Begin VB.TextBox Text2
- Height = 495
- Left = 1080
- TabIndex = 3
- Top = 1200
- Width = 3135
- End
- Begin VB.TextBox Text1
- Height = 495
- Left = 1080
- TabIndex = 2
- Top = 240
- Width = 3135
- End
- Begin VB.Label Label5
- BackColor = &H00FFFF00&
- Caption = "驾驶车型:"
- Height = 495
- Left = 120
- TabIndex = 7
- Top = 4320
- Width = 1215
- End
- Begin VB.Label Label4
- BackColor = &H00FFFF00&
- Caption = "驾驶证号:"
- Height = 495
- Left = 120
- TabIndex = 6
- Top = 3360
- Width = 1215
- End
- Begin VB.Label Label3
- BackColor = &H00FFFF00&
- Caption = "出生年月:"
- Height = 495
- Left = 120
- TabIndex = 4
- Top = 2280
- Width = 1215
- End
- Begin VB.Label Label2
- BackColor = &H00FFFF00&
- Caption = "性别:"
- Height = 495
- Left = 120
- TabIndex = 1
- Top = 1320
- Width = 1215
- End
- Begin VB.Label Label1
- BackColor = &H00FFFF00&
- Caption = "姓名:"
- Height = 495
- Left = 120
- TabIndex = 0
- Top = 360
- Width = 1215
- End
- End
- Attribute VB_Name = "Form7"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub Command1_Click()
- Dim rs As ADODB.Command
- Dim str As String
- Call open_db
- str = "insert into 驾驶员档案(姓名,性别,出生年月,驾驶证号,准驾车型)"
- str = str & "Values('" & Text1 & "','" & Text2 & "','" & Text3 & "','" & Text4 & "','" & Text5 & "')"
- Set rs = New ADODB.Command
- Set rs.ActiveConnection = adocon
- rs.CommandText = str
- rs.Execute
- Set rs = Nothing
- adocon.Close
- Set adocon = Nothing
- Call close_db
- MsgBox "添加成功!", , vbOKOnly
- End Sub
- Private Sub Command2_Click()
- Unload Me
- End Sub