📄 frmpunish.frm
字号:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Begin VB.Form FrmPunish
Caption = "罚款记录"
ClientHeight = 6165
ClientLeft = 60
ClientTop = 345
ClientWidth = 7950
Icon = "FrmPunish.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
ScaleHeight = 6165
ScaleWidth = 7950
StartUpPosition = 1 '所有者中心
Begin MSFlexGridLib.MSFlexGrid MSFlexGrid1
Height = 5295
Left = 240
TabIndex = 0
Top = 720
Width = 7455
_ExtentX = 13150
_ExtentY = 9340
_Version = 393216
End
Begin VB.Label Label1
Caption = "罚款记录浏览"
BeginProperty Font
Name = "华文行楷"
Size = 15
Charset = 134
Weight = 700
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 375
Left = 3360
TabIndex = 1
Top = 240
Width = 2895
End
End
Attribute VB_Name = "FrmPunish"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
Dim rs As ADODB.Recordset
Dim SQL As String
SQL = "SELECT * FROM punish"
Set rs = ExecuteSQL(SQL)
With MSFlexGrid1
.Rows = 2
.Cols = 5
.TextMatrix(0, 1) = "借书证号"
.TextMatrix(0, 2) = "图书编号"
.TextMatrix(0, 3) = "罚款金额"
.TextMatrix(0, 4) = "罚款日期"
.ColWidth(0) = 500
.ColWidth(1) = 1200
.ColWidth(2) = 1200
.ColWidth(3) = 1200
.ColWidth(4) = 1200
Do While Not rs.EOF
.TextMatrix(.Rows - 1, 1) = rs.Fields("借书证号")
.TextMatrix(.Rows - 1, 2) = rs.Fields("图书编号")
.TextMatrix(.Rows - 1, 3) = rs.Fields("罚款金额")
.TextMatrix(.Rows - 1, 4) = rs.Fields("罚款日期")
rs.MoveNext
.Rows = .Rows + 1
Loop
End With
rs.Close
Set rs = Nothing
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -