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

📄 frmjf3.frm

📁 CS 课 程 设 计——— 学生信息管理系统(SIMS) 使用VB+ACCESS编写
💻 FRM
字号:
VERSION 5.00
Begin VB.Form 学生交费查询 
   Caption         =   "Form1"
   ClientHeight    =   3090
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   3090
   ScaleWidth      =   4680
   StartUpPosition =   3  '窗口缺省
   Begin VB.Frame Frame1 
      Caption         =   "学生交费查询"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   2655
      Left            =   240
      TabIndex        =   0
      Top             =   120
      Width           =   4095
      Begin VB.TextBox Text1 
         BackColor       =   &H80000014&
         ForeColor       =   &H000000FF&
         Height          =   255
         Index           =   0
         Left            =   1920
         TabIndex        =   1
         Top             =   240
         Width           =   1335
      End
      Begin VB.CommandButton Command1 
         Caption         =   "确  定"
         Height          =   375
         Left            =   600
         TabIndex        =   5
         Top             =   2160
         Width           =   1095
      End
      Begin VB.CommandButton Command2 
         Caption         =   "取  消"
         Height          =   375
         Left            =   2400
         TabIndex        =   4
         Top             =   2160
         Width           =   1095
      End
      Begin VB.TextBox Text1 
         BackColor       =   &H80000014&
         ForeColor       =   &H000000FF&
         Height          =   255
         Index           =   1
         Left            =   1920
         TabIndex        =   2
         Top             =   720
         Width           =   1335
      End
      Begin VB.TextBox Text1 
         BackColor       =   &H80000014&
         ForeColor       =   &H000000FF&
         Height          =   255
         Index           =   2
         Left            =   1920
         TabIndex        =   3
         Top             =   1200
         Width           =   1335
      End
      Begin VB.Label Label4 
         AutoSize        =   -1  'True
         Caption         =   "班   级:"
         ForeColor       =   &H00000000&
         Height          =   180
         Left            =   1080
         TabIndex        =   9
         Top             =   1200
         Width           =   810
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         Caption         =   "姓   名:"
         ForeColor       =   &H00000000&
         Height          =   180
         Left            =   1080
         TabIndex        =   8
         Top             =   720
         Width           =   810
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "学   号:"
         ForeColor       =   &H00000000&
         Height          =   180
         Left            =   1080
         TabIndex        =   7
         Top             =   240
         Width           =   810
      End
      Begin VB.Label Label5 
         Caption         =   "以上内容输入一个即可查询!"
         ForeColor       =   &H00000000&
         Height          =   255
         Left            =   840
         TabIndex        =   6
         Top             =   1680
         Width           =   2775
      End
   End
End
Attribute VB_Name = "学生交费查询"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub Command1_Click()
Dim aa As Integer
 txtsql = ""
If Trim(Text1(0).Text) <> "" Then
  aa = 1
  If txtsql = "" Then
    txtsql = "xj.学号='" & Trim(Text1(0).Text) & "'"
  Else
    txtsql = txtsql & "and xj.学号='" & Trim(Text1(0).Text) & "'"
  End If
End If
If Trim(Text1(1).Text) <> "" Then
aa = 1
  If txtsql = "" Then
    txtsql = "xj.姓名='" & Trim(Text1(1).Text) & "'"
  Else
    txtsql = txtsql & "and xj.姓名='" & Trim(Text1(1).Text) & "'"
  End If
End If
If Trim(Text1(2).Text) <> "" Then
  aa = 1
  If txtsql = "" Then
    txtsql = "xj.班级='" & Trim(Text1(2).Text) & "'"
  Else
    txtsql = txtsql & "and xj.班级='" & Trim(Text1(2).Text) & "'"
  End If
End If

If aa = 0 Then
  ss = MsgBox("你至少要输入一个条件以上才能查询!", , " 警告")
  Text1(0).SetFocus
  Exit Sub
  
End If
Dim str As String
str = "select * from jf where " & txtsql





frmjf2.Sumsqlstr = "select 学号,sum(本次欠费) from jf where   学号 in (select xj.学号 from jf inner join xj on jf.学号=xj.学号 where " & txtsql & ") group by 学号 "
txtsql = "select jf.学号,xj.姓名,xj.班级,jf.学期,jf.本次交费,jf.本次欠费,jf.日期,jf.操作员 from jf inner join xj on jf.学号=xj.学号  where " & txtsql & "order by xj.学号 desc,jf.学期 desc"


  
frmjf2.printstr = txtsql
find = True
frmjf2.Caption = "学生交费查询结果"

frmjf3.Visible = False
frmjf2.jfshowtitle

frmjf2.isselect = True

frmjf2.Show
frmjf2.xuefeidata


End Sub

Private Sub Command2_Click()
  Unload Me
End Sub

Private Sub Form_Activate()
find = True
End Sub


Private Sub Form_LostFocus()
Unload Me
End Sub

Private Sub Form_Unload(Cancel As Integer)
find = False
'frmjf2.Caption = "交费查询"
End Sub

Private Sub Text1_KeyPress(Index As Integer, KeyAscii As Integer)
If KeyAscii = 39 Then
  KeyAscii = 0
End If
End Sub

⌨️ 快捷键说明

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