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

📄 frmstuedit.frm

📁 学生信息管理系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form FrmStuEdit 
   Caption         =   "修改"
   ClientHeight    =   5130
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   8520
   LinkTopic       =   "Form1"
   ScaleHeight     =   5130
   ScaleWidth      =   8520
   StartUpPosition =   3  '窗口缺省
   Begin VB.ComboBox ComboSex 
      Height          =   300
      ItemData        =   "FrmStuEdit.frx":0000
      Left            =   4560
      List            =   "FrmStuEdit.frx":000A
      TabIndex        =   27
      Top             =   360
      Width           =   975
   End
   Begin VB.CommandButton Command1 
      Caption         =   "修改"
      Height          =   495
      Left            =   1920
      TabIndex        =   26
      Top             =   4080
      Width           =   1095
   End
   Begin VB.TextBox txtStu_Name 
      Height          =   375
      Left            =   1200
      TabIndex        =   12
      Top             =   360
      Width           =   1575
   End
   Begin VB.TextBox txtNationality 
      Height          =   375
      Left            =   6720
      TabIndex        =   11
      Top             =   360
      Width           =   1575
   End
   Begin VB.TextBox txtBirth 
      Height          =   375
      Left            =   1200
      TabIndex        =   10
      Top             =   1050
      Width           =   1575
   End
   Begin VB.TextBox txtFamily_place 
      Height          =   375
      Left            =   3960
      TabIndex        =   9
      Top             =   960
      Width           =   1575
   End
   Begin VB.TextBox txtId_Card 
      Height          =   375
      Left            =   1200
      TabIndex        =   8
      Top             =   1740
      Width           =   3975
   End
   Begin VB.TextBox txtBadgeID 
      Height          =   375
      Left            =   6720
      TabIndex        =   7
      Top             =   1740
      Width           =   1575
   End
   Begin VB.TextBox txtHomePhone 
      Height          =   375
      Left            =   6720
      TabIndex        =   6
      Top             =   2430
      Width           =   1575
   End
   Begin VB.TextBox txtResidence 
      Height          =   375
      Left            =   1200
      TabIndex        =   5
      Top             =   2430
      Width           =   4455
   End
   Begin VB.TextBox txtPostcode 
      Height          =   375
      Left            =   1200
      TabIndex        =   4
      Top             =   3120
      Width           =   1575
   End
   Begin VB.TextBox txtInDate 
      Height          =   375
      Left            =   3960
      TabIndex        =   3
      Top             =   3120
      Width           =   1575
   End
   Begin VB.TextBox txtClass_ID 
      Height          =   375
      Left            =   6720
      TabIndex        =   2
      Top             =   3120
      Width           =   1575
   End
   Begin VB.TextBox txtTitle 
      Height          =   375
      Left            =   6720
      TabIndex        =   1
      Top             =   1050
      Width           =   1575
   End
   Begin VB.CommandButton Command2 
      Caption         =   "返回"
      Height          =   495
      Left            =   4920
      TabIndex        =   0
      Top             =   4080
      Width           =   1455
   End
   Begin VB.Label Label13 
      Caption         =   "班级编号:"
      Height          =   375
      Left            =   5880
      TabIndex        =   25
      Top             =   3120
      Width           =   975
   End
   Begin VB.Label Label3 
      Caption         =   "民族"
      Height          =   375
      Left            =   5880
      TabIndex        =   24
      Top             =   360
      Width           =   1215
   End
   Begin VB.Label Label6 
      Caption         =   "职务"
      Height          =   375
      Left            =   5880
      TabIndex        =   23
      Top             =   960
      Width           =   1215
   End
   Begin VB.Label Label8 
      Caption         =   "学生证号"
      Height          =   375
      Left            =   5880
      TabIndex        =   22
      Top             =   1800
      Width           =   1215
   End
   Begin VB.Label Label10 
      Caption         =   "家庭电话"
      Height          =   375
      Left            =   5880
      TabIndex        =   21
      Top             =   2520
      Width           =   1215
   End
   Begin VB.Label Label12 
      Caption         =   "入校日期"
      Height          =   375
      Left            =   3120
      TabIndex        =   20
      Top             =   3240
      Width           =   1215
   End
   Begin VB.Label Label1 
      Caption         =   "学生姓名"
      Height          =   375
      Left            =   120
      TabIndex        =   19
      Top             =   360
      Width           =   1215
   End
   Begin VB.Label Label11 
      Caption         =   "邮政编码"
      Height          =   375
      Left            =   120
      TabIndex        =   18
      Top             =   3165
      Width           =   1215
   End
   Begin VB.Label Label9 
      Caption         =   "居住地址"
      Height          =   375
      Left            =   120
      TabIndex        =   17
      Top             =   2490
      Width           =   1215
   End
   Begin VB.Label Label7 
      Caption         =   "身份证号"
      Height          =   375
      Left            =   120
      TabIndex        =   16
      Top             =   1710
      Width           =   1215
   End
   Begin VB.Label Label5 
      Caption         =   "籍贯"
      Height          =   375
      Left            =   3240
      TabIndex        =   15
      Top             =   960
      Width           =   1215
   End
   Begin VB.Label Label4 
      Caption         =   "出生日期"
      Height          =   375
      Left            =   120
      TabIndex        =   14
      Top             =   915
      Width           =   1215
   End
   Begin VB.Label Label2 
      Caption         =   "性别"
      Height          =   375
      Left            =   3240
      TabIndex        =   13
      Top             =   360
      Width           =   1215
   End
End
Attribute VB_Name = "FrmStuEdit"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public OriStudent_Id As Integer
Private Sub Command1_Click()
OriStudent_Id = FrmStuMan.Adodc1.Recordset.Fields(0)
If Trim(txtStu_Name) = "" Then
    MsgBox "请输入学生姓名"
    txtEmpName.SetFocus
Exit Sub
End If
If Trim(txtBadgeID) = "" Then
    MsgBox "请输入学生证号"
    txtBadgeID.SetFocus
Exit Sub
End If
With MyStu
  .Student_Name = MakeStr(txtStu_Name)
  .Sex = ComboSex.Text
  .Nationality = MakeStr(txtNationality)
    If IsDate(txtBirth.Text) = False Then
     MsgBox "请输入正确的出生日期"
      txtBirth.SetFocus
    Exit Sub
    End If
        .Birth = MakeStr(txtBirth)
        .Family_Place = MakeStr(txtFamily_place)
        .Id_Card = MakeStr(txtId_Card)
        .BadgeID = MakeStr(txtBadgeID)
        .Home_phone = MakeStr(txtHomePhone)
        .Residence = MakeStr(txtResidence)
        .Postcode = MakeStr(txtPostcode)
        If IsDate(txtInDate.Text) = False Then
           MsgBox "请输入正确的入校日期"
        Exit Sub
        End If
          .InDate = MakeStr(txtInDate)
          .Class_Id = Val(txtClass_ID)
          .Title = MakeStr(txtTitle)
          dd = Date
          dd = Format(dd, "yyyy-mm-dd")
          t = Time
          tt = Trim(Str(Hour(t))) + ":" + Trim(Str(Minute(t))) + ":" + Trim(Str(Second(t)))
          .Fillin_Time = dd + "  " + tt
          .Update (OriStudent_Id)
End With
        MsgBox ("数据已保存")
        Unload Me
End Sub

Private Sub Command2_Click()
Unload Me
End Sub

Private Sub Form_Unload(Cancel As Integer)
FrmStuMan.Adodc1.Refresh
End Sub

⌨️ 快捷键说明

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