📄 cx.frm
字号:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Begin VB.Form cz
Caption = "学生交费管理系统查询块"
ClientHeight = 7320
ClientLeft = 60
ClientTop = 345
ClientWidth = 8340
Icon = "cx.frx":0000
LinkTopic = "Form1"
ScaleHeight = 8595
ScaleWidth = 11880
StartUpPosition = 3 '窗口缺省
WindowState = 2 'Maximized
Begin VB.CommandButton Command8
Caption = "返回"
BeginProperty Font
Name = "隶书"
Size = 15.75
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 2640
MaskColor = &H00C0FFC0&
TabIndex = 19
Top = 7560
Width = 1575
End
Begin VB.CommandButton Command7
Caption = "退出"
BeginProperty Font
Name = "隶书"
Size = 15.75
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 7440
MaskColor = &H00C0FFC0&
TabIndex = 18
Top = 7560
Width = 1575
End
Begin VB.Frame Frame3
Caption = "按经手人查询"
BeginProperty Font
Name = "隶书"
Size = 15
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF80FF&
Height = 1575
Left = 8280
TabIndex = 13
Top = 3960
Width = 3015
Begin VB.TextBox Text4
Height = 495
Left = 720
TabIndex = 15
Top = 360
Width = 2055
End
Begin VB.CommandButton Command3
Caption = "查 询"
BeginProperty Font
Name = "隶书"
Size = 15
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 600
TabIndex = 14
Top = 960
Width = 2295
End
Begin VB.Label Label3
Caption = "经手 人"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 615
Left = 120
TabIndex = 16
Top = 360
Width = 495
End
End
Begin VB.Frame Frame1
Caption = "按学号查询"
BeginProperty Font
Name = "隶书"
Size = 15
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF80FF&
Height = 1575
Left = 480
TabIndex = 9
Top = 3960
Width = 3015
Begin VB.TextBox Text1
Height = 495
Left = 720
TabIndex = 11
Top = 360
Width = 2055
End
Begin VB.CommandButton Command1
Caption = "查 询"
BeginProperty Font
Name = "隶书"
Size = 15
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 480
TabIndex = 10
Top = 960
Width = 2175
End
Begin VB.Label Label1
Caption = "学号"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 375
Left = 120
TabIndex = 12
Top = 480
Width = 495
End
End
Begin VB.Frame Frame2
Caption = "按姓名查询"
BeginProperty Font
Name = "隶书"
Size = 15
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF80FF&
Height = 1575
Left = 4320
TabIndex = 5
Top = 3960
Width = 3015
Begin VB.CommandButton Command2
Caption = "查 询"
BeginProperty Font
Name = "隶书"
Size = 15
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 480
TabIndex = 7
Top = 960
Width = 2175
End
Begin VB.TextBox Text2
Height = 495
Left = 720
TabIndex = 6
Top = 360
Width = 2055
End
Begin VB.Label Label2
Caption = "姓名"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 375
Left = 120
TabIndex = 8
Top = 480
Width = 495
End
End
Begin VB.Frame Frame4
Caption = "自定义查询"
BeginProperty Font
Name = "隶书"
Size = 15
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF80FF&
Height = 1575
Left = 1800
TabIndex = 1
Top = 5640
Width = 7575
Begin VB.TextBox Text3
Height = 495
Left = 1560
TabIndex = 3
Text = "select * from 资料 where"
Top = 360
Width = 5415
End
Begin VB.CommandButton Command4
Caption = "查 询"
BeginProperty Font
Name = "隶书"
Size = 15
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 2640
TabIndex = 2
Top = 960
Width = 4215
End
Begin VB.Label Label8
Caption = "输入查询条件(SQL语句)"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 495
Left = 120
TabIndex = 4
Top = 360
Width = 1575
End
End
Begin VB.Data Data1
Caption = "Data1"
Connect = "Access"
DatabaseName = "E:\学生交费注册系统\user.mdb"
DefaultCursorType= 0 '缺省游标
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 615
Left = 4560
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = "资料"
Top = 6720
Visible = 0 'False
Width = 6135
End
Begin MSFlexGridLib.MSFlexGrid MSFlexGrid1
Bindings = "cx.frx":08CA
Height = 2775
Left = 360
TabIndex = 0
Top = 600
Width = 11055
_ExtentX = 19500
_ExtentY = 4895
_Version = 393216
End
Begin VB.Label Label4
Caption = "学生交费管理系统查询块"
BeginProperty Font
Name = "楷体_GB2312"
Size = 27.75
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF80FF&
Height = 615
Left = 2400
TabIndex = 17
Top = 0
Width = 6495
End
End
Attribute VB_Name = "cz"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim xhao As String
xhao = Text1.Text
Data1.RecordSource = "select * from 资料 where 学号='" & xhao & "'"
Data1.Refresh
On Error GoTo RefreshErr
datPrimaryRS.Refresh
Exit Sub
RefreshErr:
MsgBox Err.Description
End Sub
Private Sub Command2_Click()
Dim xhao As String
xhao = Text2.Text
Data1.RecordSource = "select * from 资料 where 姓名='" & xhao & "'"
Data1.Refresh
On Error GoTo RefreshErr
datPrimaryRS.Refresh
Exit Sub
RefreshErr:
MsgBox Err.Description
End Sub
Private Sub Command3_Click()
Dim xhao As String
xhao = Text4.Text
Data1.RecordSource = "select * from 资料 where 经手人='" & xhao & "'"
Data1.Refresh
On Error GoTo RefreshErr
datPrimaryRS.Refresh
Exit Sub
RefreshErr:
MsgBox Err.Description
End Sub
Private Sub Command4_Click()
Dim xhao As String
xhao = Text3.Text
Data1.RecordSource = xhao
Data1.Refresh
On Error GoTo RefreshErr
datPrimaryRS.Refresh
Exit Sub
RefreshErr:
MsgBox Err.Description
End Sub
Private Sub Command7_Click()
End
End Sub
Private Sub Command8_Click()
mainn.Show
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -