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

📄 交费查询.frm

📁 功能强大的学生信息管理系统 用户:admin 密码:admin学生信息管理系统是典型的信息管理系统 (MIS)
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "msadodc.ocx"
Begin VB.Form Frm_FindStruJF 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "学生交费查询"
   ClientHeight    =   3795
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   9480
   Icon            =   "交费查询.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3795
   ScaleWidth      =   9480
   StartUpPosition =   2  '屏幕中心
   Begin VB.Frame Frame2 
      Caption         =   "按查询类别"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   2295
      Left            =   120
      TabIndex        =   2
      Top             =   600
      Width           =   9255
      Begin VB.OptionButton Option6 
         Caption         =   "OR"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   5760
         TabIndex        =   16
         Top             =   1800
         Width           =   1095
      End
      Begin VB.OptionButton Option5 
         Caption         =   "AND"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   3000
         TabIndex        =   15
         Top             =   1800
         Width           =   975
      End
      Begin VB.TextBox Text4 
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         Left            =   7080
         TabIndex        =   14
         Text            =   "Text4"
         Top             =   1200
         Width           =   1695
      End
      Begin VB.ComboBox Combo4 
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   360
         Left            =   4800
         TabIndex        =   12
         Text            =   "Combo4"
         Top             =   1200
         Width           =   975
      End
      Begin VB.ComboBox Combo3 
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   360
         Left            =   1680
         TabIndex        =   10
         Text            =   "Combo3"
         Top             =   1200
         Width           =   1695
      End
      Begin VB.TextBox Text1 
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         Left            =   7080
         TabIndex        =   8
         Text            =   "Text1"
         Top             =   600
         Width           =   1695
      End
      Begin VB.ComboBox Combo2 
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   360
         Left            =   4800
         TabIndex        =   6
         Text            =   "Combo2"
         Top             =   600
         Width           =   975
      End
      Begin VB.ComboBox Combo1 
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   360
         Left            =   1680
         TabIndex        =   4
         Text            =   "Combo1"
         Top             =   600
         Width           =   1695
      End
      Begin VB.Label Label8 
         Caption         =   "条件2:"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   6360
         TabIndex        =   13
         Top             =   1320
         Width           =   735
      End
      Begin VB.Label Label7 
         Caption         =   "运算符:"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   3960
         TabIndex        =   11
         Top             =   1320
         Width           =   855
      End
      Begin VB.Label Label6 
         Caption         =   "查询类别2:"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   600
         TabIndex        =   9
         Top             =   1320
         Width           =   1215
      End
      Begin VB.Label Label5 
         Caption         =   "条件1:"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   6360
         TabIndex        =   7
         Top             =   720
         Width           =   735
      End
      Begin VB.Label Label4 
         Caption         =   "运算符:"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   3960
         TabIndex        =   5
         Top             =   720
         Width           =   855
      End
      Begin VB.Label Label1 
         Caption         =   "查询类别1:"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   600
         TabIndex        =   3
         Top             =   720
         Width           =   1215
      End
   End
   Begin VB.CommandButton Command3 
      Caption         =   "退出"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   7920
      TabIndex        =   1
      Top             =   3120
      Width           =   1215
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   375
      Left            =   840
      Top             =   3240
      Visible         =   0   'False
      Width           =   1815
      _ExtentX        =   3201
      _ExtentY        =   661
      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=   3
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "DSN=信息"
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   "信息"
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "select * from 交费表"
      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.CommandButton Command1 
      Caption         =   "查询"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   5880
      TabIndex        =   0
      Top             =   3120
      Width           =   1215
   End
End
Attribute VB_Name = "Frm_FindStruJF"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False



Private Sub Command1_Click()
Dim a As String
Dim XSJF1 As String
Dim XSJF2 As String

'If Option1.Value = True Then
a = Trim(Combo2)
Select Case a
    Case "="
        XSJF1 = "" & Combo1.Text & " " & Combo2.Text & " '" & Trim(Text1) & "'"
    Case "like"
        XSJF1 = "Instr(1," & Combo1.Text & ",'" & Trim(Text1.Text) & "')<>0 "
End Select
    
a = Trim(Combo4)
Select Case a
    Case "="
        XSJF2 = "" & Combo3.Text & " " & Combo4.Text & " '" & Trim(Text4) & "'"
    Case "like"
        XSJF2 = "Instr(1," & Combo3.Text & ",'" & Trim(Text4.Text) & "')<>0 "
End Select
    
If Option5.Value = True Then
    If XSJF1 = "" Then
            strTiaoJian = "select * from 交费表 where " & XSJF2
    ElseIf sqltj2 = "" Then
            strTiaoJian = "select * from 交费表 where " & XSJF1
        Else
            strTiaoJian = "select * from 交费表 where " & XSJF1 & "and " & XSJF2
    End If
ElseIf Option6.Value = True Then
    If XSJF1 = "" Then
            strTiaoJian = "select * from 交费表 where " & XSJF2
    ElseIf XSJF2 = "" Then
            strTiaoJian = "select * from 交费表 where " & XSJF1
        Else
            strTiaoJian = "select * from 交费表 where " & XSJF1 & "or " & XSJF2
    End If
Else
    If XSJF1 = "" Then
        strTiaoJian = "select * from 交费表 where " & XSJF2
    ElseIf XSJF2 = "" Then
        strTiaoJian = "select * from 交费表 where " & XSJF1
    Else
        MsgBox "请选择连接方式!", vbOKOnly, "警告"
    Exit Sub
    End If
End If
    
If (XSJF1 & XSJF2) = "" Then
    MsgBox "请输入查询条件!", vbOKOnly, "警告"
Exit Sub
Else
    Unload Me
    Frm_UpdateStruJF.Show 1
End If
'End If

'If Option2.Value = True Then
      ' If Text2.Text = "" Then
          'MsgBox "请先输入查询条件!"
          'Exit Sub
       'End If
       'strTiaoJian = "select *  from 交费表 where 年级='" & Text1.Text & " '"
'Else
   ' Frm_UpdateStruJF.Show 1
'End If

 

End Sub

Private Sub Command3_Click()
    Unload Me
End Sub

Private Sub Form_Load()
Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=信息.mdb;Persist Security Info=False"
Combo1.AddItem ("年级")
Combo1.AddItem ("学号")
Combo1.AddItem ("姓名")
Combo1.AddItem ("专业")
Combo1.AddItem ("实际交费")
Combo1.AddItem ("本次欠费")
Combo2.AddItem ("=")
Combo3.AddItem ("年级")
Combo3.AddItem ("学号")
Combo3.AddItem ("姓名")
Combo3.AddItem ("专业")
Combo3.AddItem ("实际交费")
Combo3.AddItem ("本次欠费")
Combo4.AddItem ("=")
Combo1.Text = ""
Combo2.Text = ""
Text1.Text = ""
Combo3.Text = ""
Combo4.Text = ""
Text4.Text = ""
End Sub


⌨️ 快捷键说明

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