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

📄 xtrz.frm

📁 关于图书销售管理
💻 FRM
字号:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Begin VB.Form xtrz 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "系统使用日志"
   ClientHeight    =   4980
   ClientLeft      =   4380
   ClientTop       =   2925
   ClientWidth     =   7995
   Icon            =   "xtrz.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   4980
   ScaleWidth      =   7995
   Begin VB.Frame Frame1 
      Height          =   4935
      Left            =   0
      TabIndex        =   0
      Top             =   0
      Width           =   7935
      Begin VB.CommandButton Command1 
         Caption         =   "清空(&Q)"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   495
         Left            =   6600
         TabIndex        =   3
         Top             =   3240
         Width           =   1215
      End
      Begin VB.CommandButton Command2 
         Caption         =   "退出(&E)"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   495
         Left            =   6600
         TabIndex        =   2
         Top             =   4080
         Width           =   1215
      End
      Begin VB.Data Data1 
         Caption         =   "Data1"
         Connect         =   "Access"
         DatabaseName    =   ""
         DefaultCursorType=   0  '缺省游标
         DefaultType     =   2  '使用 ODBC
         Exclusive       =   0   'False
         Height          =   375
         Left            =   3120
         Options         =   0
         ReadOnly        =   0   'False
         RecordsetType   =   1  'Dynaset
         RecordSource    =   ""
         Top             =   1200
         Visible         =   0   'False
         Width           =   1935
      End
      Begin MSFlexGridLib.MSFlexGrid MSFlexGrid1 
         Bindings        =   "xtrz.frx":0442
         Height          =   4575
         Left            =   120
         TabIndex        =   1
         Top             =   240
         Width           =   6375
         _ExtentX        =   11245
         _ExtentY        =   8070
         _Version        =   393216
         Rows            =   20
         Cols            =   5
         BackColor       =   -2147483624
         ForeColorFixed  =   0
         BackColorSel    =   64
         GridColorFixed  =   64
         FocusRect       =   2
         GridLines       =   3
         FormatString    =   ""
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
      End
   End
End
Attribute VB_Name = "xtrz"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Response = MsgBox("确实要清空系统使用日志吗?", vbYesNo + vbInformation + vbDefaultButton1, "提示")
If Response <> vbYes Then
     Exit Sub
 End If
Data1.Recordset.MoveLast
incount = Data1.Recordset.RecordCount
Data1.Recordset.MoveFirst
For i = 1 To incount
   Data1.Recordset.Delete
   Data1.Recordset.MoveNext
 Next
   Data1.Refresh
Call Form_Activate
End Sub

Private Sub Command2_Click()
Unload Me
End Sub

Private Sub Form_Activate()
MSFlexGrid1.ColWidth(0) = 200
MSFlexGrid1.ColWidth(1) = 1500
MSFlexGrid1.ColWidth(2) = 1500
MSFlexGrid1.ColWidth(3) = 1500
MSFlexGrid1.ColWidth(4) = 1500

MSFlexGrid1.TextMatrix(0, 1) = "登录人员"
MSFlexGrid1.TextMatrix(0, 2) = "     日期"
MSFlexGrid1.TextMatrix(0, 3) = "   开始时间"
MSFlexGrid1.TextMatrix(0, 4) = "   结束时间"



End Sub

Private Sub Form_Load()
Data1.DatabaseName = App.Path & "\db1.mdb"
Data1.RecordSource = "select * from xtrz"

End Sub

⌨️ 快捷键说明

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