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

📄 student_ifxiougai.frm

📁 带有SQL
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Begin VB.Form student_ifxiougai 
   Caption         =   "修改学生基本信息"
   ClientHeight    =   8745
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   15045
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MDIChild        =   -1  'True
   ScaleHeight     =   8745
   ScaleWidth      =   15045
   Begin VB.Frame Frame2 
      Caption         =   "选择修改学生信息"
      Height          =   1815
      Left            =   8040
      TabIndex        =   31
      Top             =   240
      Width           =   6855
      Begin VB.CheckBox Check2 
         Caption         =   "学生姓名"
         Height          =   375
         Left            =   3600
         TabIndex        =   37
         Top             =   360
         Width           =   1095
      End
      Begin VB.CheckBox Check1 
         Caption         =   "学生学号"
         Height          =   375
         Left            =   240
         TabIndex        =   36
         Top             =   360
         Value           =   1  'Checked
         Width           =   1095
      End
      Begin VB.CommandButton Command5 
         Caption         =   "重新选择"
         Height          =   375
         Left            =   4200
         TabIndex        =   34
         Top             =   1080
         Width           =   1335
      End
      Begin VB.CommandButton Command4 
         Caption         =   "确定选择"
         Default         =   -1  'True
         Height          =   375
         Left            =   1320
         TabIndex        =   33
         Top             =   1080
         Width           =   1455
      End
      Begin VB.TextBox Text13 
         Height          =   375
         Left            =   4680
         TabIndex        =   32
         Top             =   360
         Width           =   1935
      End
      Begin VB.TextBox Text12 
         Height          =   375
         Left            =   1320
         TabIndex        =   1
         Top             =   360
         Width           =   1935
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "所有学生信息列表"
      Height          =   6375
      Left            =   8040
      TabIndex        =   29
      Top             =   2160
      Width           =   6855
      Begin MSFlexGridLib.MSFlexGrid MSFlexGrid1 
         Height          =   6135
         Left            =   120
         TabIndex        =   30
         Top             =   240
         Width           =   6615
         _ExtentX        =   11668
         _ExtentY        =   10821
         _Version        =   393216
         Cols            =   15
         FixedCols       =   2
      End
   End
   Begin VB.Frame a 
      Caption         =   "该学生的基本信息列表"
      Height          =   8295
      Left            =   120
      TabIndex        =   0
      Top             =   240
      Width           =   7695
      Begin VB.CommandButton Command6 
         Caption         =   "删除信息"
         Height          =   495
         Left            =   6000
         TabIndex        =   35
         Top             =   7320
         Width           =   1215
      End
      Begin VB.TextBox Text1 
         Height          =   390
         Left            =   1320
         TabIndex        =   16
         Top             =   480
         Width           =   2295
      End
      Begin VB.TextBox Text2 
         Height          =   375
         Left            =   5160
         TabIndex        =   15
         Top             =   480
         Width           =   2295
      End
      Begin VB.ComboBox Combo1 
         Height          =   300
         Left            =   1320
         TabIndex        =   14
         Text            =   "Combo1"
         Top             =   1320
         Width           =   2295
      End
      Begin VB.CommandButton Command1 
         Caption         =   "修改信息 "
         Height          =   495
         Left            =   720
         TabIndex        =   13
         Top             =   7320
         Width           =   1215
      End
      Begin VB.CommandButton Command2 
         Caption         =   "更新信息"
         Height          =   495
         Left            =   2400
         TabIndex        =   12
         Top             =   7320
         Width           =   1335
      End
      Begin VB.TextBox Text3 
         Height          =   375
         Left            =   5160
         TabIndex        =   11
         Top             =   1200
         Width           =   2295
      End
      Begin VB.TextBox Text4 
         Height          =   375
         Left            =   1320
         TabIndex        =   10
         Top             =   2040
         Width           =   2295
      End
      Begin VB.TextBox Text5 
         Height          =   375
         Left            =   5160
         TabIndex        =   9
         Top             =   2040
         Width           =   2295
      End
      Begin VB.TextBox Text6 
         Height          =   375
         Left            =   1320
         TabIndex        =   8
         Top             =   2880
         Width           =   2295
      End
      Begin VB.TextBox Text7 
         Height          =   375
         Left            =   5160
         TabIndex        =   7
         Top             =   2880
         Width           =   2295
      End
      Begin VB.TextBox Text8 
         Height          =   375
         Left            =   1320
         TabIndex        =   6
         Top             =   3720
         Width           =   2295
      End
      Begin VB.TextBox Text9 
         Height          =   375
         Left            =   5160
         TabIndex        =   5
         Top             =   3720
         Width           =   2295
      End
      Begin VB.TextBox Text10 
         Height          =   375
         Left            =   1320
         TabIndex        =   4
         Top             =   4560
         Width           =   2295
      End
      Begin VB.TextBox Text11 
         Height          =   1215
         Left            =   1320
         MultiLine       =   -1  'True
         ScrollBars      =   2  'Vertical
         TabIndex        =   3
         Top             =   5520
         Width           =   6015
      End
      Begin VB.CommandButton Command3 
         Caption         =   "取消修改 "
         Height          =   495
         Left            =   4200
         TabIndex        =   2
         Top             =   7320
         Width           =   1215
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         Caption         =   "学    号:"
         Height          =   180
         Left            =   240
         TabIndex        =   28
         Top             =   600
         Width           =   900
      End
      Begin VB.Label Label3 
         AutoSize        =   -1  'True
         Caption         =   "姓    名:"
         Height          =   180
         Left            =   4080
         TabIndex        =   27
         Top             =   600
         Width           =   900
      End
      Begin VB.Label Label4 
         AutoSize        =   -1  'True
         Caption         =   "性    别:"
         Height          =   180
         Left            =   240
         TabIndex        =   26
         Top             =   1440
         Width           =   900
      End
      Begin VB.Label Label5 
         AutoSize        =   -1  'True
         Caption         =   "系    别:"
         Height          =   180
         Left            =   240
         TabIndex        =   25
         Top             =   2160
         Width           =   900
      End
      Begin VB.Label Label6 
         AutoSize        =   -1  'True
         Caption         =   "年    级:"
         Height          =   180
         Left            =   4080
         TabIndex        =   24
         Top             =   1440
         Width           =   900
      End
      Begin VB.Label Label7 
         AutoSize        =   -1  'True
         Caption         =   "电    话:"
         Height          =   180
         Left            =   240
         TabIndex        =   23
         Top             =   3000
         Width           =   900
      End
      Begin VB.Label Label8 
         AutoSize        =   -1  'True
         Caption         =   "政治面貌:"
         Height          =   180
         Left            =   4080
         TabIndex        =   22
         Top             =   3000
         Width           =   900
      End
      Begin VB.Label Label9 
         AutoSize        =   -1  'True
         Caption         =   "寝 室 号:"
         Height          =   180
         Left            =   3840
         TabIndex        =   21
         Top             =   3840
         Width           =   900
      End
      Begin VB.Label Label10 
         AutoSize        =   -1  'True
         Caption         =   "居住楼号:"
         Height          =   180
         Left            =   240
         TabIndex        =   20
         Top             =   3840
         Width           =   900
      End
      Begin VB.Label Label11 
         AutoSize        =   -1  'True
         Caption         =   "床    位:"
         Height          =   180
         Left            =   240
         TabIndex        =   19
         Top             =   4680
         Width           =   900
      End
      Begin VB.Label Label12 
         AutoSize        =   -1  'True
         Caption         =   "备注"
         Height          =   180
         Left            =   360
         TabIndex        =   18
         Top             =   6000
         Width           =   360
      End
      Begin VB.Label Label13 
         AutoSize        =   -1  'True
         Caption         =   "班    别:"
         Height          =   180
         Left            =   4080
         TabIndex        =   17
         Top             =   2160
         Width           =   900
      End
   End
End
Attribute VB_Name = "student_ifxiougai"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
 Dim mrc As ADODB.Recordset
 Dim ok As Boolean           ' 判断输入文本是否改变的类型



Private Sub Combo1_Change()
    ok = True
End Sub

Private Sub Command1_Click()
     
     Call keyong               '调用一个能让里面的控件可以使用的自定义函数
     Text2.SetFocus
End Sub

Private Sub Command2_Click()
    
        Dim txtSQL As String
        Dim MsgText As String
   If ok = False Then
       MsgBox "你什么也没动!", 0, ""
       Me.Text2.SetFocus
       Exit Sub
   End If
   If mrc.EOF = True Then
       MsgBox "没有数据的!", 0, "提示"
       Me.Frame1.Enabled = False
       Me.Frame2.Enabled = False
       Exit Sub
   End If
       
         '判断各个输入框中是否为空
        
    If Me.Text2.Text = "" Then
        MsgBox "请输入姓名!", vbOKOnly + vbExclamation, "警告"
        Me.Text2.SetFocus
        Exit Sub
    End If
    If Me.Combo1.Text = "" Then
        MsgBox "您没有选择性别!", vbOKOnly + vbExclamation, "警告"
        Me.Combo1.SetFocus
        Exit Sub
    End If
    If Me.Text3.Text = "" Then
        MsgBox "请输入年级!", vbOKOnly + vbExclamation, "警告"
        Me.Text3.SetFocus
        Exit Sub
    End If
    If Me.Text4.Text = "" Then
        MsgBox "请输入系别!", vbOKOnly + vbExclamation, "警告"
        Me.Text4.SetFocus
        Exit Sub
    End If
    If Me.Text5.Text = "" Then
        MsgBox "请输入班号!", vbOKOnly + vbExclamation, "警告"
        Me.Text5.SetFocus
        Exit Sub
    End If
    If Me.Text6.Text = "" Then
        MsgBox "请输入该生的联系电话!", vbOKOnly + vbExclamation, "警告"
        Me.Text6.SetFocus

⌨️ 快捷键说明

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