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

📄 snofrm.frm

📁 SQL SERVER+ isual basic的数据库开发的漏洞管理系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form snofrm 
   Caption         =   "Form1"
   ClientHeight    =   5775
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   9375
   LinkTopic       =   "Form1"
   ScaleHeight     =   5775
   ScaleWidth      =   9375
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command2 
      Caption         =   "退出"
      Height          =   375
      Left            =   2280
      TabIndex        =   13
      Top             =   5280
      Width           =   1095
   End
   Begin VB.TextBox Text4 
      Height          =   495
      Left            =   5040
      TabIndex        =   10
      Top             =   4080
      Width           =   1095
   End
   Begin VB.TextBox Text3 
      Height          =   495
      Left            =   4680
      TabIndex        =   8
      Top             =   3240
      Width           =   1935
   End
   Begin VB.CommandButton Command1 
      Caption         =   "查询"
      Height          =   495
      Left            =   2520
      TabIndex        =   5
      Top             =   1680
      Width           =   2295
   End
   Begin VB.TextBox Text2 
      Height          =   495
      Left            =   2160
      TabIndex        =   3
      Top             =   3240
      Width           =   1095
   End
   Begin VB.TextBox Text1 
      Height          =   375
      Left            =   3240
      TabIndex        =   1
      Top             =   1080
      Width           =   1935
   End
   Begin VB.Label Label8 
      Alignment       =   2  'Center
      Caption         =   "栋"
      Height          =   375
      Left            =   4560
      TabIndex        =   12
      Top             =   4200
      Width           =   495
   End
   Begin VB.Label Label7 
      Caption         =   "荟园8栋"
      Height          =   375
      Left            =   3480
      TabIndex        =   11
      Top             =   4200
      Width           =   735
   End
   Begin VB.Label Label6 
      Alignment       =   1  'Right Justify
      Caption         =   "宿舍号:"
      Height          =   375
      Left            =   1920
      TabIndex        =   9
      Top             =   4200
      Width           =   1335
   End
   Begin VB.Label Label5 
      Caption         =   "学院"
      Height          =   375
      Left            =   3840
      TabIndex        =   7
      Top             =   3240
      Width           =   975
   End
   Begin VB.Label Label4 
      Caption         =   "姓名"
      Height          =   495
      Left            =   1560
      TabIndex        =   6
      Top             =   3240
      Width           =   975
   End
   Begin VB.Label Label3 
      Caption         =   "输入学号"
      Height          =   495
      Left            =   1200
      TabIndex        =   4
      Top             =   1080
      Width           =   1575
   End
   Begin VB.Label Label2 
      Caption         =   "查询结果    "
      Height          =   495
      Left            =   720
      TabIndex        =   2
      Top             =   2280
      Width           =   1815
   End
   Begin VB.Label Label1 
      Caption         =   "按学号查询"
      Height          =   375
      Left            =   1320
      TabIndex        =   0
      Top             =   360
      Width           =   1935
   End
End
Attribute VB_Name = "snofrm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
  
  If Text1.Text = "" Then
  MsgBox (" 请输入学号 ")
  Text1.SetFocus
  Else
  
  Dim txtSQL As String
  Dim MsgText As String
   Dim mrc As ADODB.Recordset
     Set mrc = New ADODB.Recordset
  txtSQL = Trim("select sname,sxueyuan,roomno from student join sturoom on student.sno=sturoom.sno where student.sno='" & Trim(Text1.Text) & "'")
   Set mrc = ExecuteSQL(txtSQL, MsgText)
    If mrc.EOF = True Then MsgBox (MsgText)
   Text2.Text = mrc.Fields(0)
   Text3.Text = mrc.Fields(1)
  
   Text4.Text = mrc.Fields(2)
   Set mrc = Nothing
  
        End If
End Sub

Private Sub snofrm_Load()
  Text1.SetFocus
End Sub

Private Sub Command2_Click()
Me.Hide
End Sub

⌨️ 快捷键说明

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