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

📄 缴费.frm

📁 大学数据库课程设计--学生宿舍管理系统 包含文档分析
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form jiaofei 
   BackColor       =   &H00C0FFFF&
   Caption         =   "学生缴费情况"
   ClientHeight    =   11010
   ClientLeft      =   165
   ClientTop       =   555
   ClientWidth     =   14895
   LinkTopic       =   "Form2"
   ScaleHeight     =   12840
   ScaleWidth      =   21480
   StartUpPosition =   3  '窗口缺省
   WindowState     =   2  'Maximized
   Begin VB.Frame Frame2 
      Caption         =   "项目信息"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   14.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   4455
      Left            =   480
      TabIndex        =   9
      Top             =   480
      Width           =   6135
      Begin MSDataGridLib.DataGrid DataGrid1 
         Bindings        =   "缴费.frx":0000
         Height          =   3855
         Left            =   0
         TabIndex        =   10
         Top             =   240
         Width           =   8655
         _ExtentX        =   15266
         _ExtentY        =   6800
         _Version        =   393216
         HeadLines       =   1
         RowHeight       =   15
         BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ColumnCount     =   2
         BeginProperty Column00 
            DataField       =   ""
            Caption         =   ""
            BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
               Type            =   0
               Format          =   ""
               HaveTrueFalseNull=   0
               FirstDayOfWeek  =   0
               FirstWeekOfYear =   0
               LCID            =   2052
               SubFormatType   =   0
            EndProperty
         EndProperty
         BeginProperty Column01 
            DataField       =   ""
            Caption         =   ""
            BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
               Type            =   0
               Format          =   ""
               HaveTrueFalseNull=   0
               FirstDayOfWeek  =   0
               FirstWeekOfYear =   0
               LCID            =   2052
               SubFormatType   =   0
            EndProperty
         EndProperty
         SplitCount      =   1
         BeginProperty Split0 
            BeginProperty Column00 
            EndProperty
            BeginProperty Column01 
            EndProperty
         EndProperty
      End
   End
   Begin VB.CommandButton Command12 
      Caption         =   "原图"
      Height          =   375
      Left            =   3840
      TabIndex        =   7
      Top             =   8160
      Width           =   1215
   End
   Begin VB.CommandButton Command11 
      Caption         =   "退出"
      Height          =   375
      Left            =   3840
      TabIndex        =   6
      Top             =   9720
      Width           =   1215
   End
   Begin VB.CommandButton Command9 
      Caption         =   "保存"
      Height          =   375
      Left            =   3840
      TabIndex        =   5
      Top             =   6600
      Width           =   1215
   End
   Begin VB.CommandButton Command8 
      Caption         =   "删除"
      Height          =   375
      Left            =   3840
      TabIndex        =   4
      Top             =   8940
      Width           =   1215
   End
   Begin VB.CommandButton Command7 
      Caption         =   "添加"
      Height          =   375
      Left            =   3840
      TabIndex        =   3
      Top             =   7380
      Width           =   1215
   End
   Begin VB.Frame Frame1 
      Caption         =   "查询"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   14.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   6375
      Left            =   480
      TabIndex        =   0
      Top             =   5760
      Width           =   5775
      Begin MSAdodcLib.Adodc Adodc1 
         Height          =   495
         Left            =   600
         Top             =   5280
         Width           =   4215
         _ExtentX        =   7435
         _ExtentY        =   873
         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.TextBox Text7 
         Height          =   375
         Left            =   960
         TabIndex        =   8
         Top             =   1680
         Width           =   1335
      End
      Begin VB.CommandButton Command1 
         Caption         =   "查询"
         Height          =   375
         Left            =   960
         TabIndex        =   2
         Top             =   2520
         Width           =   1215
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "学号"
         BeginProperty Font 
            Name            =   "华文中宋"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   285
         Left            =   360
         TabIndex        =   1
         Top             =   1680
         Width           =   480
      End
   End
   Begin VB.Image Image1 
      Height          =   11520
      Left            =   9240
      Picture         =   "缴费.frx":0015
      Stretch         =   -1  'True
      Top             =   2760
      Width           =   15360
   End
End
Attribute VB_Name = "jiaofei"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False






Private Sub Command1_Click()
Dim strSQL As String
Dim a As String
a = Text7.Text
  Set conn = New ADODB.Connection
  conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + App.Path + "\ss.mdb;Persist Security Info=False"
  strSQL = "SELECT * FROM 缴费 where 学号='" & a & "'"
   Set rs = New ADODB.Recordset
   rs.CursorLocation = adUseClient
   rs.Open strSQL, conn, adOpenStatic, adLockReadOnly
    Set DataGrid1.DataSource = rs
End Sub






Private Sub Command7_Click()
Adodc1.Recordset.AddNew
Command7.Enabled = False
End Sub

Private Sub Command8_Click()
With Adodc1.Recordset
  .Delete
  .MoveNext
  If .EOF Then .MoveFirst
End With
Command8.Enabled = False
End Sub

Private Sub Command9_Click()
Adodc1.Recordset.MoveFirst
MsgBox "您已经对该表进行了修改!"
End Sub

Private Sub Command12_Click()
Unload Me
jiaofei.Show
End Sub

Private Sub Command11_Click()
Command7.Enabled = False
Command8.Enabled = False
Me.Hide
Form1.Show
End Sub




Private Sub Form_Activate()
Image1.Left = jiaofei.ScaleLeft
Image1.Top = jiaofei.ScaleTop
Image1.Width = jiaofei.ScaleWidth
Image1.Height = jiaofei.ScaleHeight
End Sub

Private Sub Form_Load()

Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Persist Security Info=False;Data Source=" & App.Path & "\ss.mdb"
Adodc1.RecordSource = "select * from 缴费"
Adodc1.Refresh
End Sub












⌨️ 快捷键说明

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