tiaojian.frm

来自「试卷生成和评分系统 试卷生成和评分系统」· FRM 代码 · 共 116 行

FRM
116
字号
VERSION 5.00
Begin VB.Form tiaojian 
   Caption         =   "选择条件"
   ClientHeight    =   1995
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   7455
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   ScaleHeight     =   1995
   ScaleWidth      =   7455
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton Command2 
      Caption         =   "取消"
      Height          =   495
      Left            =   4440
      TabIndex        =   8
      Top             =   1320
      Width           =   975
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确定"
      Height          =   495
      Left            =   2040
      TabIndex        =   7
      Top             =   1320
      Width           =   975
   End
   Begin VB.Frame Frame1 
      Caption         =   "生成条件"
      Height          =   975
      Left            =   0
      TabIndex        =   0
      Top             =   120
      Width           =   7335
      Begin VB.ComboBox Combo1 
         Height          =   300
         ItemData        =   "tiaojian.frx":0000
         Left            =   1200
         List            =   "tiaojian.frx":000D
         TabIndex        =   1
         Top             =   360
         Width           =   1215
      End
      Begin VB.TextBox Text1 
         Height          =   300
         Left            =   3480
         TabIndex        =   2
         Top             =   360
         Width           =   1215
      End
      Begin VB.TextBox Text2 
         Height          =   300
         Left            =   5760
         TabIndex        =   3
         Top             =   360
         Width           =   1335
      End
      Begin VB.Label Label1 
         Caption         =   "请选择难度"
         Height          =   255
         Left            =   120
         TabIndex        =   6
         Top             =   383
         Width           =   1095
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         Caption         =   "试卷名称"
         Height          =   180
         Left            =   2640
         TabIndex        =   5
         Top             =   420
         Width           =   720
      End
      Begin VB.Label Label3 
         AutoSize        =   -1  'True
         Caption         =   "试卷编号"
         Height          =   180
         Left            =   4920
         TabIndex        =   4
         Top             =   420
         Width           =   720
      End
   End
End
Attribute VB_Name = "tiaojian"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
 Dim mrc5 As ADODB.Recordset

Private Sub Command1_Click()
    If Combo1.Text = "" Or Text1 = "" Or Text2 = "" Then
        MsgBox "请输入完整的信息", vbOKOnly
        Else
        txtsql5 = "select * from 试卷"
        Set mrc5 = exesql(txtsql5)
        Set hand.DataGrid2.DataSource = mrc5
        mrc5.MoveLast
        mrc5.AddNew
        mrc5.Fields("试卷名称") = Text1
        mrc5.Fields("试卷号") = Text2
        mrc5.Fields("试卷难度") = Combo1.Text
        mrc5.Update
        zairu.Show
        Unload Me
    End If
End Sub

Private Sub Command2_Click()
    Unload Me
End Sub

⌨️ 快捷键说明

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