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

📄 addtable.frm

📁 简单的数据库系统
💻 FRM
📖 第 1 页 / 共 4 页
字号:
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00FF0000&
         Height          =   495
         Left            =   6480
         TabIndex        =   14
         Text            =   "第六节"
         Top             =   1920
         Width           =   1095
      End
      Begin VB.TextBox Text78 
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00FF0000&
         Height          =   495
         Left            =   7560
         TabIndex        =   13
         Text            =   "第七节"
         Top             =   1920
         Width           =   1095
      End
      Begin VB.TextBox Text79 
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00FF0000&
         Height          =   495
         Left            =   8640
         TabIndex        =   12
         Text            =   "第八节"
         Top             =   1920
         Width           =   1095
      End
      Begin VB.TextBox Text80 
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00FF0000&
         Height          =   495
         Left            =   9720
         TabIndex        =   11
         Text            =   "第九、十节"
         Top             =   1920
         Width           =   1095
      End
      Begin VB.TextBox Text82 
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00FF0000&
         Height          =   495
         Left            =   1440
         TabIndex        =   10
         Text            =   "              上        午           "
         Top             =   1440
         Width           =   3975
      End
      Begin VB.TextBox Text83 
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00FF0000&
         Height          =   495
         Left            =   5400
         TabIndex        =   9
         Text            =   "                 下        午"
         Top             =   1440
         Width           =   4335
      End
      Begin VB.TextBox Text84 
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00FF0000&
         Height          =   495
         Left            =   9720
         TabIndex        =   8
         Text            =   " 晚自习"
         Top             =   1440
         Width           =   1095
      End
      Begin VB.TextBox Text41 
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00FF0000&
         Height          =   495
         Left            =   6480
         TabIndex        =   7
         Top             =   3360
         Width           =   1095
      End
      Begin VB.TextBox Text64 
         Height          =   495
         Left            =   3840
         TabIndex        =   6
         Top             =   480
         Width           =   2415
      End
      Begin VB.PictureBox Picture1 
         BackColor       =   &H00FFFFFF&
         Height          =   975
         Left            =   240
         ScaleHeight     =   915
         ScaleWidth      =   1155
         TabIndex        =   5
         Top             =   1440
         Width           =   1215
         Begin VB.Line Line1 
            BorderColor     =   &H00C0C0C0&
            BorderWidth     =   2
            X1              =   0
            X2              =   1200
            Y1              =   0
            Y2              =   960
         End
      End
      Begin VB.Label Label4 
         Caption         =   "年"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   18
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00FF0000&
         Height          =   495
         Left            =   10200
         TabIndex        =   86
         Top             =   480
         Width           =   615
      End
      Begin VB.Label Label1 
         Caption         =   "Label1"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00FF0000&
         Height          =   495
         Left            =   5400
         TabIndex        =   84
         Top             =   2880
         Width           =   975
      End
      Begin VB.Label Label2 
         Caption         =   "班"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   21.75
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00FF0000&
         Height          =   375
         Left            =   3240
         TabIndex        =   83
         Top             =   480
         Width           =   495
      End
      Begin VB.Label Label3 
         Caption         =   "课程表"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   21.75
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00FF0000&
         Height          =   495
         Left            =   6480
         TabIndex        =   82
         Top             =   480
         Width           =   1455
      End
   End
   Begin VB.CommandButton Command4 
      Caption         =   "关           闭(&C)"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   7680
      TabIndex        =   3
      Top             =   5880
      Width           =   3495
   End
   Begin VB.CommandButton Command3 
      Caption         =   "重          填(&E)"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   4440
      TabIndex        =   2
      Top             =   5880
      Width           =   3015
   End
   Begin VB.CommandButton Command2 
      Caption         =   "确         定(&O)"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   720
      TabIndex        =   1
      Top             =   5880
      Width           =   3375
   End
   Begin VB.Frame Frame1 
      Height          =   855
      Left            =   480
      TabIndex        =   0
      Top             =   5640
      Width           =   11055
   End
End
Attribute VB_Name = "addtable"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command2_Click()
If Command2.Caption = "确         定(&O)" Then
   If Not Testtxt(Text63.Text) Then
     MsgBox "请输入班级!", 48, "提示"
     Text63.SetFocus
     Exit Sub
   End If
   If Not Testtxt(Text64.Text) Then
     MsgBox "请输入时间!", 48, "提示"
     Text64.SetFocus
     Exit Sub
   End If
   
    '+++++++++++++++++++++++++++++++++++++++++++++++++
    txtSQL = "select * from coutable "
    Set dream = ExecuteSQL(txtSQL, Msgtext)
    dream.MoveFirst
    While (dream.EOF = False)
       If (dream.Fields(1)) = Trim(Text41.Text) Then
         MsgBox "该班课程表已经添加,需要修改请点击菜单上的修改命令!", 48, "提示"
         Exit Sub
         Text85.Text = ""
         Text85.SetFocus
       Else
         dream.MoveNext
      End If
    Wend
    dream.AddNew
    dream.Fields(0) = Trim(Text4.Text)
    dream.Fields(1) = Trim(Text8.Text)
    dream.Fields(2) = Trim(Text9.Text)
    dream.Fields(3) = Trim(Text10.Text)
    dream.Fields(4) = Trim(Text11.Text)
    dream.Fields(5) = Trim(Text12.Text)
    dream.Fields(6) = Trim(Text13.Text)
    dream.Fields(7) = Trim(Text14.Text)
    dream.Fields(8) = Trim(Text15.Text)
    dream.Fields(9) = Trim(Text16.Text)
    dream.Fields(10) = Trim(Text17.Text)
    dream.Fields(11) = Trim(Text18.Text)
    dream.Fields(12) = Trim(Text19.Text)
    dream.Fields(13) = Trim(Text20.Text)
    dream.Fields(14) = Trim(Text21.Text)
    dream.Fields(15) = Trim(Text22.Text)
    dream.Fields(16) = Trim(Text23.Text)
    dream.Fields(17) = Trim(Text24.Text)
    dream.Fields(18) = Trim(Text25.Text)
    dream.Fields(19) = Trim(Text26.Text)
    dream.Fields(20) = Trim(Text27.Text)
    dream.Fields(21) = Trim(Text28.Text)
    dream.Fields(22) = Trim(Text29.Text)
    dream.Fields(23) = Trim(Text30.Text)
    dream.Fields(24) = Trim(Text31.Text)
    dream.Fields(25) = Trim(Text32.Text)
    dream.Fields(26) = Trim(Text33.Text)
    dream.Fields(27) = Trim(Text34.Text)
    dream.Fields(28) = Trim(Text35.Text)
    dream.Fields(29) = Trim(Text36.Text)
    dream.Fields(30) = Trim(Text64.Text)
    dream.UpdateBatch
    '=================================================
    MsgBox "课程表添加成功!", 48, "提示"
    
    Command2.Enabled = True
    Command3.Enabled = True
 Else
   ' Text1.Text = ""
   ' Text2.Text = ""
   ' Text3.Text = ""
   ' Text4.Text = ""
   ' Text5.Text = ""
   ' Text6.Text = ""
   ' Text7.Text = ""
    'Text8.Text = ""
   ' Text9.Text = ""
    'Text10.Text = ""
    'Text11.Text = ""
    'Text12.Text = ""
   ' Text13.Text = ""
  End If
End Sub


Private Sub Command4_Click()
Unload Me
studentmdi.StatusBar1.Panels.Item(1).Text = " "
End Sub

Private Sub Form_Load()
addtable.Height = 7530
addtable.Width = 11895
addtable.Caption = "添加课程表信息.....[" + Format(Date, "yyyy年mm月dd日]")
studentmdi.StatusBar1.Panels.Item(1).Text = "添加课程表信息"
End Sub

⌨️ 快捷键说明

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