⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 form6.frm

📁 花图馆管理
💻 FRM
字号:
VERSION 5.00
Begin VB.Form login5 
   Caption         =   "添加档案"
   ClientHeight    =   4845
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   9210
   LinkTopic       =   "Form6"
   ScaleHeight     =   4845
   ScaleWidth      =   9210
   StartUpPosition =   3  '窗口缺省
   Begin VB.TextBox Text14 
      Height          =   375
      Left            =   2040
      TabIndex        =   27
      Top             =   360
      Width           =   2295
   End
   Begin VB.TextBox Text13 
      Height          =   855
      Left            =   6360
      TabIndex        =   26
      Text            =   "无"
      Top             =   2760
      Width           =   2415
   End
   Begin VB.TextBox Text12 
      Height          =   375
      Left            =   6360
      TabIndex        =   25
      Top             =   2280
      Width           =   2415
   End
   Begin VB.TextBox Text11 
      Height          =   375
      Left            =   6360
      TabIndex        =   24
      Top             =   1800
      Width           =   2415
   End
   Begin VB.TextBox Text10 
      Height          =   375
      Left            =   6360
      TabIndex        =   23
      Top             =   1320
      Width           =   2415
   End
   Begin VB.TextBox Text9 
      Height          =   375
      Left            =   6360
      TabIndex        =   22
      Top             =   840
      Width           =   2415
   End
   Begin VB.TextBox Text8 
      Height          =   375
      Left            =   6360
      TabIndex        =   21
      Top             =   360
      Width           =   2415
   End
   Begin VB.TextBox Text7 
      Height          =   375
      Left            =   2040
      TabIndex        =   20
      Top             =   3240
      Width           =   2295
   End
   Begin VB.TextBox Text6 
      Height          =   375
      Left            =   2040
      TabIndex        =   19
      Top             =   2760
      Width           =   2295
   End
   Begin VB.TextBox Text5 
      Height          =   375
      Left            =   2040
      TabIndex        =   18
      Top             =   2280
      Width           =   2295
   End
   Begin VB.TextBox Text4 
      Height          =   375
      Left            =   2040
      TabIndex        =   17
      Top             =   1800
      Width           =   2295
   End
   Begin VB.TextBox Text3 
      Height          =   375
      Left            =   2040
      TabIndex        =   16
      Top             =   1320
      Width           =   2295
   End
   Begin VB.TextBox Text2 
      Height          =   375
      Left            =   2040
      TabIndex        =   15
      Top             =   840
      Width           =   2295
   End
   Begin VB.CommandButton Command2 
      Caption         =   "取消"
      Height          =   495
      Left            =   5880
      TabIndex        =   14
      Top             =   4080
      Width           =   1575
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确定"
      Height          =   495
      Left            =   2760
      TabIndex        =   13
      Top             =   4200
      Width           =   1455
   End
   Begin VB.Label Label16 
      Caption         =   "此 页 全 为 必 添 项 "
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H000000FF&
      Height          =   1815
      Left            =   360
      TabIndex        =   31
      Top             =   1080
      Width           =   255
   End
   Begin VB.Label Label15 
      Caption         =   "*"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   24
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H000000FF&
      Height          =   495
      Index           =   3
      Left            =   3960
      TabIndex        =   30
      Top             =   3240
      Width           =   255
   End
   Begin VB.Label Label14 
      Caption         =   "(日期型)"
      ForeColor       =   &H000000FF&
      Height          =   255
      Index           =   1
      Left            =   4320
      TabIndex        =   29
      Top             =   2880
      Width           =   855
   End
   Begin VB.Label Label14 
      Caption         =   "(日期型)"
      ForeColor       =   &H000000FF&
      Height          =   255
      Index           =   0
      Left            =   4320
      TabIndex        =   28
      Top             =   2400
      Width           =   735
   End
   Begin VB.Label Label13 
      Caption         =   "学 号"
      Height          =   255
      Left            =   1320
      TabIndex        =   12
      Top             =   360
      Width           =   615
   End
   Begin VB.Label Label12 
      Caption         =   "备注"
      Height          =   255
      Left            =   5760
      TabIndex        =   11
      Top             =   3120
      Width           =   495
   End
   Begin VB.Label Label11 
      Caption         =   "电话"
      Height          =   255
      Left            =   5760
      TabIndex        =   10
      Top             =   2400
      Width           =   495
   End
   Begin VB.Label Label10 
      Caption         =   "家庭住址"
      Height          =   375
      Left            =   5400
      TabIndex        =   9
      Top             =   1920
      Width           =   855
   End
   Begin VB.Label Label9 
      Caption         =   "专业"
      Height          =   255
      Left            =   5640
      TabIndex        =   8
      Top             =   1440
      Width           =   615
   End
   Begin VB.Label Label8 
      Caption         =   "籍贯"
      Height          =   255
      Left            =   5640
      TabIndex        =   7
      Top             =   960
      Width           =   615
   End
   Begin VB.Label Label7 
      Caption         =   "科别"
      Height          =   255
      Left            =   5640
      TabIndex        =   6
      Top             =   480
      Width           =   615
   End
   Begin VB.Label Label6 
      Caption         =   "政治面貌"
      Height          =   255
      Left            =   1080
      TabIndex        =   5
      Top             =   3360
      Width           =   855
   End
   Begin VB.Label Label5 
      Caption         =   "毕业时间"
      Height          =   255
      Left            =   1080
      TabIndex        =   4
      Top             =   2760
      Width           =   855
   End
   Begin VB.Label Label4 
      Caption         =   "入学时间"
      Height          =   255
      Left            =   1080
      TabIndex        =   3
      Top             =   2280
      Width           =   855
   End
   Begin VB.Label Label3 
      Caption         =   "年 龄"
      Height          =   255
      Left            =   1200
      TabIndex        =   2
      Top             =   1920
      Width           =   615
   End
   Begin VB.Label Label2 
      Caption         =   "性 别"
      Height          =   255
      Left            =   1320
      TabIndex        =   1
      Top             =   1440
      Width           =   615
   End
   Begin VB.Label Label1 
      Caption         =   "姓 名"
      Height          =   255
      Left            =   1320
      TabIndex        =   0
      Top             =   840
      Width           =   615
   End
End
Attribute VB_Name = "login5"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim rs As ADODB.Recordset
Dim sql As String
On Error GoTo Command1_Click_Error
If (Text14.Text = "") Or (Text2.Text = "") Or (Text3.Text = "") Or (Text4.Text = "") Or (Text5.Text = "") Or (Text6.Text = "") Or (Text7.Text = "") Or (Text8.Text = "") Or (Text9.Text = "") Or (Text10.Text = "") Or (Text11.Text = "") Or (Text12.Text = "") Or (Text13.Text = "") Then
MsgBox "请添完整各个必添项", vbOKOnly + vbExclamation, "提示!"
Else
sql = "select * from students "
Set rs = TransactSQL(sql)
rs.addnew
rs.Fields(0) = Text14.Text
rs.Fields(1) = Text2.Text
rs.Fields(2) = Text3.Text
rs.Fields(3) = Text4.Text
rs.Fields(4) = Text5.Text
rs.Fields(5) = Text6.Text
rs.Fields(6) = Text7.Text
rs.Fields(7) = Text8.Text
rs.Fields(8) = Text9.Text
rs.Fields(9) = Text10.Text
rs.Fields(10) = Text11.Text
rs.Fields(11) = Text12.Text
rs.Fields(12) = Text13.Text
rs.update
MsgBox "添加成功", vbOKOnly + vbExclamation, "提示!"
End If
Text14.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 = "无"
Command1_Click_Error:
Exit Sub
End Sub

Private Sub Command2_Click()
Unload Me
Exit Sub
End Sub


Private Sub Form_Load()
Text14.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 = "无"
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -