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

📄 xuejixinxi.frm

📁 主要用于学生的各方面信息的管理
💻 FRM
📖 第 1 页 / 共 2 页
字号:
      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 MSAdodcLib.Adodc Adodc3 
      Height          =   330
      Left            =   0
      Top             =   0
      Visible         =   0   'False
      Width           =   1200
      _ExtentX        =   2117
      _ExtentY        =   582
      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 MSAdodcLib.Adodc Adodc4 
      Height          =   330
      Left            =   0
      Top             =   0
      Visible         =   0   'False
      Width           =   1200
      _ExtentX        =   2117
      _ExtentY        =   582
      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.Label Label13 
      BackStyle       =   0  'Transparent
      Caption         =   "学院"
      Height          =   255
      Left            =   360
      TabIndex        =   31
      Top             =   1320
      Width           =   855
   End
   Begin VB.Label Label10 
      Caption         =   "Label10"
      Height          =   135
      Left            =   240
      TabIndex        =   27
      Top             =   3120
      Width           =   735
   End
   Begin VB.Label Label9 
      BackStyle       =   0  'Transparent
      Caption         =   "政治面貌"
      Height          =   375
      Left            =   3840
      TabIndex        =   8
      Top             =   1920
      Width           =   855
   End
   Begin VB.Label Label8 
      BackStyle       =   0  'Transparent
      Caption         =   "入学日期"
      Height          =   375
      Left            =   360
      TabIndex        =   7
      Top             =   720
      Width           =   855
   End
   Begin VB.Label Label7 
      BackStyle       =   0  'Transparent
      Caption         =   "出生年月"
      Height          =   375
      Left            =   3840
      TabIndex        =   6
      Top             =   1320
      Width           =   855
   End
   Begin VB.Label Label6 
      BackStyle       =   0  'Transparent
      Caption         =   "姓名"
      Height          =   375
      Left            =   3840
      TabIndex        =   5
      Top             =   120
      Width           =   855
   End
   Begin VB.Label Label4 
      BackStyle       =   0  'Transparent
      Caption         =   "系别"
      Height          =   375
      Left            =   360
      TabIndex        =   4
      Top             =   1920
      Width           =   855
   End
   Begin VB.Label Label3 
      BackStyle       =   0  'Transparent
      Caption         =   "班级"
      Height          =   375
      Left            =   360
      TabIndex        =   3
      Top             =   2400
      Width           =   855
   End
   Begin VB.Label Label2 
      BackStyle       =   0  'Transparent
      Caption         =   "性别"
      Height          =   375
      Left            =   3840
      TabIndex        =   2
      Top             =   720
      Width           =   855
   End
   Begin VB.Label Label1 
      BackStyle       =   0  'Transparent
      Caption         =   "学号"
      Height          =   375
      Left            =   360
      TabIndex        =   1
      Top             =   120
      Width           =   855
   End
End
Attribute VB_Name = "xueji"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False


Private Sub Command1_Click()

Adodc5.Recordset.MoveFirst
showdata
Command2.Enabled = True
Command3.Enabled = True

End Sub
Private Sub Combo1_GotFocus()
Combo2.Clear
Combo3.Clear
End Sub

Private Sub Combo1_LostFocus()

Me.Adodc2.RecordSource = "select distinct depart_name from Manage_base where college_name='" & Me.Combo1.Text & "'"
Adodc2.Refresh
For i = 0 To Adodc2.Recordset.RecordCount - 1
Me.Combo2.AddItem (Adodc2.Recordset.Fields(0))
Adodc2.Recordset.MoveNext
Next i
End Sub

Private Sub Combo2_GotFocus()
Combo3.Clear
End Sub

Private Sub Combo2_LostFocus()
Me.Adodc3.RecordSource = "select distinct major_name from Manage_base where depart_name='" & Me.Combo2.Text & "'"
Adodc3.Refresh
For i = 0 To Adodc3.Recordset.RecordCount - 1
Me.Combo3.AddItem (Adodc3.Recordset.Fields(0))
Adodc3.Recordset.MoveNext
Next i

End Sub

Private Sub Command10_Click()

Adodc5.RecordSource = "select user_id,user_name,user_indate,user_birth,user_sex,user_college,user_depart,user_major,user_status from Manage_user where user_id=" & Text1(0).Text
Adodc5.Refresh
showdata
End Sub

Private Sub Command2_Click()

Adodc5.Recordset.MovePrevious
If Adodc5.Recordset.BOF Then
Command1_Click
MsgBox ("已经是首记录")
End If
showdata
End Sub

Private Sub Command3_Click()

Adodc5.Recordset.MoveNext
If Adodc5.Recordset.EOF Then
Command4_Click
MsgBox ("已经是末记录")
End If
showdata
End Sub

Private Sub Command4_Click()

Adodc5.Recordset.MoveLast
showdata
Command2.Enabled = True
Command3.Enabled = True
End Sub

Private Sub Command5_Click()
Unload Me
End Sub

Private Sub Command6_Click()

updatedata


Me.Combo1.Enabled = False
Me.Combo2.Enabled = False
Me.Combo3.Enabled = False
Me.Combo4.Enabled = False
Me.Combo5.Enabled = False
For j = 0 To 3
Text1(j).Enabled = False
Next j
End Sub

Private Sub Command7_Click()

Text1(0).Enabled = True
Text1(0).Text = ""
Text1(0).SetFocus

End Sub

Private Sub Command8_Click()

Adodc5.Recordset.Delete
Command3_Click
End Sub

Private Sub Command9_Click()

Me.Combo1.Enabled = True
Me.Combo2.Enabled = True
Me.Combo3.Enabled = True
Me.Combo4.Enabled = True
Me.Combo5.Enabled = True
For j = 0 To 3
Text1(j).Enabled = True
Next j
Text1(0).SetFocus
End Sub

Private Sub Form_Load()
Adodc1.ConnectionString = cnn()
Adodc2.ConnectionString = cnn()
Adodc3.ConnectionString = cnn()

Me.Adodc1.RecordSource = "select distinct college_name from Manage_base"
Adodc1.Refresh
For i = 0 To Adodc1.Recordset.RecordCount - 1
Me.Combo1.AddItem (Adodc1.Recordset.Fields(0))
Adodc1.Recordset.MoveNext
Next i


Adodc5.ConnectionString = cnn()
Adodc5.RecordSource = "select user_id,user_name,user_indate,user_birth,user_sex,user_college,user_depart,user_major,user_status from Manage_user"
Adodc5.Refresh
End Sub
Private Sub updatedata()
For i = 0 To 3
 Adodc5.Recordset.Fields(i) = Text1(i).Text
Next i
 Adodc5.Recordset.Fields("user_college") = Combo1.Text
Adodc5.Recordset.Fields("user_sex") = Combo4.Text

Adodc5.Recordset.Fields("user_depart") = Combo2.Text
Adodc5.Recordset.Fields("user_status") = Combo5.Text
 Adodc5.Recordset.Fields("user_major") = Combo3.Text
 Adodc5.Recordset.Update
End Sub
Private Sub showdata()
For i = 0 To 3
Text1(i).Text = Adodc5.Recordset.Fields(i)
Next i
Combo1.Text = Adodc5.Recordset.Fields("user_college")
Combo4.Text = Adodc5.Recordset.Fields("user_sex")

Combo2.Text = Adodc5.Recordset.Fields("user_depart")
Combo5.Text = Adodc5.Recordset.Fields("user_status")
Combo3.Text = Adodc5.Recordset.Fields("user_major")
End Sub

⌨️ 快捷键说明

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