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

📄 information.frm

📁 用vb开发设计得学生信息管理系统。。实现基本得信息查询 和统计
💻 FRM
📖 第 1 页 / 共 3 页
字号:
         Left            =   4080
         Picture         =   "information.frx":5D12
         Top             =   5960
         Width           =   150
      End
      Begin VB.Image Image3 
         Height          =   465
         Index           =   2
         Left            =   2640
         Picture         =   "information.frx":5DF7
         Top             =   3440
         Width           =   150
      End
      Begin VB.Image Image3 
         Height          =   465
         Index           =   3
         Left            =   2640
         Picture         =   "information.frx":5EDC
         Top             =   440
         Width           =   150
      End
      Begin VB.Image Image3 
         Height          =   465
         Index           =   4
         Left            =   2640
         Picture         =   "information.frx":5FC1
         Top             =   1640
         Width           =   150
      End
      Begin VB.Image Image3 
         Height          =   465
         Index           =   5
         Left            =   2640
         Picture         =   "information.frx":60A6
         Top             =   2240
         Width           =   150
      End
      Begin VB.Image Image3 
         Height          =   465
         Index           =   6
         Left            =   2640
         Picture         =   "information.frx":618B
         Top             =   1040
         Width           =   150
      End
      Begin VB.Label Label14 
         BackColor       =   &H00E0E0E0&
         Caption         =   "性别 "
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   15
            Charset         =   134
            Weight          =   400
            Underline       =   -1  'True
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   495
         Left            =   480
         TabIndex        =   11
         Top             =   1680
         Width           =   735
      End
      Begin VB.Label Label7 
         BackColor       =   &H00E0E0E0&
         Caption         =   "班级 "
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   15
            Charset         =   134
            Weight          =   400
            Underline       =   -1  'True
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   495
         Left            =   480
         TabIndex        =   10
         Top             =   2880
         Width           =   735
      End
      Begin VB.Label Label15 
         BackColor       =   &H00E0E0E0&
         Caption         =   "专业     "
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   15
            Charset         =   134
            Weight          =   400
            Underline       =   -1  'True
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         Left            =   480
         TabIndex        =   9
         Top             =   2280
         Width           =   615
      End
      Begin VB.Label Label16 
         BackColor       =   &H00E0E0E0&
         Caption         =   "电话 "
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   15
            Charset         =   134
            Weight          =   400
            Underline       =   -1  'True
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         Left            =   480
         TabIndex        =   8
         Top             =   3480
         Width           =   735
      End
      Begin VB.Label Label17 
         BackColor       =   &H00E0E0E0&
         Caption         =   "邮件 "
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   15
            Charset         =   134
            Weight          =   400
            Underline       =   -1  'True
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         Left            =   480
         TabIndex        =   7
         Top             =   6000
         Width           =   735
      End
      Begin VB.Image Image1 
         Height          =   465
         Index           =   7
         Left            =   240
         Picture         =   "information.frx":6270
         Top             =   6000
         Width           =   150
      End
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   375
      Left            =   840
      Top             =   1800
      Visible         =   0   'False
      Width           =   1815
      _ExtentX        =   3201
      _ExtentY        =   661
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   8
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   ""
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   ""
      Caption         =   "Adodc1"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin VB.Image Image3 
      Height          =   465
      Index           =   10
      Left            =   0
      Picture         =   "information.frx":6366
      Top             =   0
      Width           =   150
   End
   Begin VB.Image Image3 
      Height          =   465
      Index           =   0
      Left            =   0
      Picture         =   "information.frx":644B
      Top             =   0
      Width           =   150
   End
   Begin VB.Image Image7 
      Height          =   1380
      Left            =   12720
      Picture         =   "information.frx":6530
      Top             =   3840
      Width           =   2280
   End
   Begin VB.Shape Shape2 
      BorderColor     =   &H000040C0&
      BorderWidth     =   3
      FillColor       =   &H00004040&
      Height          =   7995
      Left            =   10320
      Top             =   2280
      Width           =   4605
   End
   Begin VB.Image Image5 
      Height          =   1935
      Left            =   11640
      Picture         =   "information.frx":6DDE
      Top             =   120
      Width           =   2370
   End
   Begin VB.Shape Shape1 
      BorderColor     =   &H00008000&
      BorderStyle     =   5  'Dash-Dot-Dot
      BorderWidth     =   5
      Height          =   7935
      Left            =   480
      Top             =   2280
      Width           =   9735
   End
   Begin VB.Label Label6 
      BackColor       =   &H00FFFFFF&
      Caption         =   "学生信息表"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   42
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00800000&
      Height          =   855
      Left            =   4800
      TabIndex        =   0
      Top             =   720
      Width           =   4455
   End
   Begin VB.Image Image2 
      Height          =   1065
      Left            =   0
      Picture         =   "information.frx":868D
      Top             =   240
      Width           =   4035
   End
End
Attribute VB_Name = "information"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub add_Click()
 
  If number.Text = "" Then
     MsgBox "学号唯一,不能为空!", vbInformation, "提示"
     Exit Sub
  Else
   
     Adodc1.Recordset.AddNew
     Adodc1.Recordset.Fields("学号") = number.Text
     If name1.Text <> "" Then Adodc1.Recordset.Fields("姓名") = name1.Text
     If sex.Text <> "" Then Adodc1.Recordset.Fields("性别") = sex.Text
     If grade.Text <> "" Then Adodc1.Recordset.Fields("班级") = grade.Text
     If major.Text <> "" Then Adodc1.Recordset.Fields("专业") = major.Text
     If tel.Text <> "" Then Adodc1.Recordset.Fields("电话") = tel.Text
     If techang.Text <> "" Then Adodc1.Recordset.Fields("特长") = techang.Text
     If zhiwu.Text <> "" Then Adodc1.Recordset.Fields("职务") = zhiwu.Text
     If mail.Text <> "" Then Adodc1.Recordset.Fields("邮件") = mail.Text
     If beizhu.Text <> "" Then Adodc1.Recordset.Fields("备注") = beizhu.Text
     Adodc1.Recordset.Update
     name1.Text = "": sex.Text = "": grade.Text = "": major.Text = "": tel.Text = ""
     techang.Text = "": zhiwu.Text = "": mail.Text = "": beizhu.Text = "": number.Text = ""
  
End If
End Sub

Private Sub cancle_Click()
  name1.Text = "": sex.Text = "": grade.Text = "": major.Text = "": tel.Text = ""
  techang.Text = "": zhiwu.Text = "": mail.Text = "": beizhu.Text = "": number.Text = ""
  
End Sub

Private Sub colse_Click()
main.Show
Unload Me
End Sub

Private Sub Form_Load()
   Me.Width = Screen.Width
   Me.Height = Screen.Height
   Me.Left = 0
   Me.Top = 0
   Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=" + App.Path + "\aa.mdb"
   Adodc1.RecordSource = "资料”"
   Adodc1.Refresh
End Sub


Private Sub search_Click()
s = "select * from 学生基本信息 where"
  If number.Text <> "" Then s = s & "学号 like & number.Text &"
  If name1.Text <> "" Then s = s & "姓名 like "
End Sub

Private Sub xiugai_Click()
  If Adodc1.Recordset.RecordCount = 0 Then
     MsgBox "没有相关记录!", , "提示":
     Exit Sub
  Else
      If Adodc1.Recordset.Fields("姓名") <> "" Then name1.Text = Adodc1.Recordset.Fields("姓名")
      If Adodc1.Recordset.Fields("学号") <> "" Then number.Text = Adodc1.Recordset.Fields("学号")
      If Adodc1.Recordset.Fields("性别") <> "" Then sex.Text = Adodc1.Recordset.Fields("性别")
      If Adodc1.Recordset.Fields("专业") <> "" Then major.Text = Adodc1.Recordset.Fields("专业")
      If Adodc1.Recordset.Fields("班级") <> "" Then grade.Text = Adodc1.Recordset.Fields("班级")
      If Adodc1.Recordset.Fields("电话") <> "" Then tel.Text = Adodc1.Recordset.Fields("电话")
      If Adodc1.Recordset.Fields("特长") <> "" Then techang.Text = Adodc1.Recordset.Fields("特长")
      If Adodc1.Recordset.Fields("职务") <> "" Then zhiwu.Text = Adodc1.Recordset.Fields("职务")
      If Adodc1.Recordset.Fields("备注") <> "" Then beizhu.Text = Adodc1.Recordset.Fields("备注")
      If Adodc1.Recordset.Fields("邮件") <> "" Then mail.Text = Adodc1.Recordset.Fields("邮件")
      Adodc1.Recordset.Delete
  End If
End Sub

⌨️ 快捷键说明

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