📄 moneyview.frm
字号:
VERSION 5.00
Object = "{00028C01-0000-0000-0000-000000000046}#1.0#0"; "DBGRID32.OCX"
Begin VB.Form PickView
Caption = "显示取款记录列表"
ClientHeight = 6795
ClientLeft = 90
ClientTop = 375
ClientWidth = 10455
LinkTopic = "Form1"
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 8595
ScaleWidth = 11880
WindowState = 2 'Maximized
Begin VB.Data Data1
Caption = "Data1"
Connect = "Access"
DatabaseName = "C:\WINDOWS\Desktop\银行定储\bank.mdb"
DefaultCursorType= 0 '缺省游标
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 375
Left = 2280
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = "取款记录"
Top = 1800
Visible = 0 'False
Width = 3495
End
Begin VB.Frame Frame2
Height = 1095
Left = 6240
TabIndex = 11
Top = 0
Width = 5655
Begin VB.CommandButton Command1
Caption = "刷新列表(&R)"
Height = 375
Left = 120
TabIndex = 23
Top = 600
Width = 1215
End
Begin VB.CommandButton Command4
Caption = "输出表格(&O)"
Height = 375
Left = 2920
TabIndex = 22
Top = 600
Width = 1215
End
Begin VB.ComboBox Combo1
Height = 300
ItemData = "MoneyView.frx":0000
Left = 120
List = "MoneyView.frx":001C
TabIndex = 21
Text = "姓名"
Top = 240
Width = 1455
End
Begin VB.CommandButton Command3
Caption = "关闭窗口(&C)"
Height = 375
Left = 4320
TabIndex = 19
Top = 600
Width = 1215
End
Begin VB.OptionButton lblLike
Caption = "like"
Height = 255
Left = 3120
TabIndex = 18
Top = 240
Width = 750
End
Begin VB.OptionButton lblEqual
Caption = "="
Height = 255
Left = 1680
TabIndex = 17
Top = 240
Value = -1 'True
Width = 495
End
Begin VB.OptionButton lblSmall
Caption = "<"
Height = 255
Left = 2160
TabIndex = 16
Top = 240
Width = 495
End
Begin VB.TextBox txtCompare
Height = 270
Left = 3960
TabIndex = 15
Top = 240
Width = 1575
End
Begin VB.OptionButton lblLarge
Caption = ">"
Height = 255
Left = 2640
TabIndex = 14
Top = 240
Width = 495
End
Begin VB.CommandButton Command2
Caption = "筛选数据(&S)"
Height = 375
Left = 1520
TabIndex = 12
Top = 600
Width = 1215
End
End
Begin VB.Frame Frame1
Caption = "显示的字段"
Height = 1095
Left = 120
TabIndex = 1
Top = 0
Width = 6015
Begin VB.CheckBox Check1
Caption = "全选"
Height = 615
Left = 5160
Style = 1 'Graphical
TabIndex = 13
Top = 240
Width = 735
End
Begin VB.CheckBox Ctr_View
Caption = "存款日期"
Height = 255
Index = 6
Left = 3960
TabIndex = 20
Top = 300
Value = 1 'Checked
Width = 1095
End
Begin VB.CheckBox Ctr_View
Caption = "营业员"
Height = 255
Index = 8
Left = 1800
TabIndex = 10
Top = 720
Value = 1 'Checked
Width = 855
End
Begin VB.CheckBox Ctr_View
Caption = "地址"
Height = 255
Index = 10
Left = 960
TabIndex = 9
Top = 720
Value = 1 'Checked
Width = 1095
End
Begin VB.CheckBox Ctr_View
Caption = "取款日期"
Height = 255
Index = 7
Left = 3960
TabIndex = 8
Top = 720
Value = 1 'Checked
Width = 1095
End
Begin VB.CheckBox Ctr_View
Caption = "取款金额"
Height = 255
Index = 5
Left = 2760
TabIndex = 7
Top = 720
Value = 1 'Checked
Width = 1095
End
Begin VB.CheckBox Ctr_View
Caption = "利息"
Height = 255
Index = 4
Left = 120
TabIndex = 6
Top = 720
Value = 1 'Checked
Width = 735
End
Begin VB.CheckBox Ctr_View
Caption = "储种"
Height = 255
Index = 2
Left = 1800
TabIndex = 5
Top = 300
Value = 1 'Checked
Width = 735
End
Begin VB.CheckBox Ctr_View
Caption = "姓名"
Height = 255
Index = 1
Left = 960
TabIndex = 4
Top = 300
Value = 1 'Checked
Width = 735
End
Begin VB.CheckBox Ctr_View
Caption = "帐号"
Height = 255
Index = 0
Left = 120
TabIndex = 3
Top = 300
Value = 1 'Checked
Width = 735
End
Begin VB.CheckBox Ctr_View
Caption = "存款金额"
Height = 255
Index = 3
Left = 2760
TabIndex = 2
Top = 300
Value = 1 'Checked
Width = 1095
End
End
Begin MSDBGrid.DBGrid DataView
Align = 2 'Align Bottom
Bindings = "MoneyView.frx":0068
Height = 5595
Left = 0
OleObjectBlob = "MoneyView.frx":007C
TabIndex = 0
Top = 3000
Width = 11880
End
End
Attribute VB_Name = "PickView"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Check1_Click()
On Error Resume Next
Dim i As Integer
For i = 0 To 10
Ctr_View(i).Value = Check1.Value
Next i
End Sub
Private Sub Command1_Click()
Data1.Refresh
End Sub
Private Sub Command3_Click()
Unload Me
End Sub
Private Sub Command4_Click()
On Error Resume Next
PrintName = "取款记录"
frmToHtm.Show
End Sub
Private Sub Ctr_View_Click(Index As Integer)
DataView.Columns(Index).Visible = Ctr_View(Index).Value
End Sub
Private Sub Form_Load()
Data1.DatabaseName = App.Path & IIf(Len(App.Path) > 3, "\bank.mdb", "bank.mdb")
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -