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

📄 form8.frm

📁 软件用到的技巧:透明窗体
💻 FRM
字号:
VERSION 5.00
Object = "{E95A2510-F3D1-416D-823B-4F840FE98091}#3.0#0"; "Command.ocx"
Begin VB.Form frmalltongji 
   Caption         =   "数据库信息统计"
   ClientHeight    =   3615
   ClientLeft      =   60
   ClientTop       =   390
   ClientWidth     =   6315
   LinkTopic       =   "Form8"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   ScaleHeight     =   3615
   ScaleWidth      =   6315
   Begin CSCommand.Command Command1 
      Height          =   375
      Left            =   4920
      TabIndex        =   5
      Top             =   3135
      Width           =   1290
      _ExtentX        =   2275
      _ExtentY        =   661
      IconAlign       =   0
      Icon            =   "Form8.frx":0000
      Caption         =   "刷新 &R"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
   End
   Begin VB.Frame Frame2 
      Caption         =   "各个数据库中的纪录总和"
      Height          =   2175
      Left            =   105
      TabIndex        =   8
      Top             =   855
      Width           =   6120
      Begin VB.TextBox Text6 
         Height          =   315
         Left            =   1470
         TabIndex        =   15
         Text            =   "Text6"
         Top             =   1680
         Width           =   4515
      End
      Begin VB.TextBox Text5 
         Height          =   270
         Left            =   1470
         Locked          =   -1  'True
         TabIndex        =   4
         Text            =   "Text3"
         Top             =   1320
         Width           =   4515
      End
      Begin VB.TextBox Text4 
         Height          =   270
         Left            =   1470
         Locked          =   -1  'True
         TabIndex        =   3
         Text            =   "Text3"
         Top             =   970
         Width           =   4515
      End
      Begin VB.TextBox Text3 
         Height          =   270
         Left            =   1470
         Locked          =   -1  'True
         TabIndex        =   2
         Text            =   "Text3"
         Top             =   620
         Width           =   4515
      End
      Begin VB.TextBox Text2 
         Height          =   270
         Left            =   1470
         Locked          =   -1  'True
         TabIndex        =   1
         Text            =   "Text2"
         Top             =   270
         Width           =   4515
      End
      Begin VB.Label Label7 
         Alignment       =   1  'Right Justify
         BackStyle       =   0  'Transparent
         Caption         =   "网址收藏库:"
         Height          =   195
         Left            =   135
         TabIndex        =   14
         Top             =   1725
         Width           =   1275
      End
      Begin VB.Label Label5 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "本公司员工库:"
         Height          =   180
         Left            =   150
         TabIndex        =   12
         Top             =   1374
         Width           =   1260
      End
      Begin VB.Label Label4 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "联系人库:"
         Height          =   180
         Left            =   510
         TabIndex        =   11
         Top             =   1026
         Width           =   900
      End
      Begin VB.Label Label3 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "拜访纪录库:"
         Height          =   180
         Left            =   345
         TabIndex        =   10
         Top             =   678
         Width           =   1080
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "商家资料库:"
         Height          =   180
         Left            =   345
         TabIndex        =   9
         Top             =   330
         Width           =   1080
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "当前数据库"
      Height          =   705
      Left            =   90
      TabIndex        =   6
      Top             =   90
      Width           =   6135
      Begin VB.TextBox Text1 
         Height          =   285
         Left            =   1455
         Locked          =   -1  'True
         TabIndex        =   0
         Text            =   "Text1"
         Top             =   255
         Width           =   4530
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "数据库路径:"
         Height          =   180
         Left            =   360
         TabIndex        =   7
         Top             =   300
         Width           =   1080
      End
   End
   Begin VB.Label Label6 
      BackStyle       =   0  'Transparent
      Caption         =   "Label6"
      Height          =   240
      Left            =   405
      TabIndex        =   13
      Top             =   3150
      Width           =   3255
   End
End
Attribute VB_Name = "frmalltongji"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'****************************************************************************
'人人为我,我为人人
'枕善居收藏整理
'发布日期:2007/12/24
'描    述:商务名片及客户资料管理系统 Ver 1.73
'网    站:http://www.Mndsoft.com/  (VB6源码博客)
'网    站:http://www.VbDnet.com/   (VB.NET源码博客,主要基于.NET2005)
'e-mail  :Mndsoft@163.com
'e-mail  :Mndsoft@126.com
'OICQ    :88382850
'          如果您有新的好的代码别忘记给枕善居哦!
'****************************************************************************
Option Explicit

Private Sub Command1_Click()
    TongJi
    Label6.Caption = "* 统计时间:" & Now()
End Sub

Private Sub Form_Load()
    Me.Icon = MDIForm1.Icon
        Me.BackColor = FormBackColor
    Me.Frame1.BackColor = Me.BackColor
    Me.Frame2.BackColor = Me.BackColor
    Me.Text1.Text = ""
    Me.Text2.Text = ""
    Me.Text3.Text = ""
    Me.Text4.Text = ""
    Me.Text5.Text = ""
    TongJi
    Me.Height = 4125
    Me.Width = 6435
    Label6.Caption = "* 统计时间:" & Now()

End Sub

Private Sub TongJi()
    Me.Text1.Text = MdbPath
    Dim db As Database
    Dim rs As Recordset
    Set db = OpenDatabase(MdbPath)
    Set rs = db.OpenRecordset("select * from com")
        If rs.RecordCount = 0 Then
            Me.Text2.Text = rs.RecordCount
            Me.Text2.Text = "0"
        Else
            rs.MoveLast
            rs.MoveFirst
            Me.Text2.Text = rs.RecordCount
        End If
    rs.Close
    Set rs = db.OpenRecordset("select * from baifang")
    If rs.RecordCount = 0 Then
        Me.Text3.Text = rs.RecordCount
    Else
        rs.MoveLast
        rs.MoveFirst
        Me.Text3.Text = rs.RecordCount
    End If
    rs.Close
    Set rs = db.OpenRecordset("select * from ren")
    If rs.RecordCount = 0 Then
        Me.Text4.Text = rs.RecordCount
    Else
        rs.MoveLast
        rs.MoveFirst
        Me.Text4.Text = rs.RecordCount
    End If
    rs.Close
    Set rs = db.OpenRecordset("select * from mycom")
    If rs.RecordCount = 0 Then
        Me.Text5.Text = rs.RecordCount
    Else
        rs.MoveLast
        rs.MoveFirst
        Me.Text5.Text = rs.RecordCount
    End If
    rs.Close
    Set rs = db.OpenRecordset("select * from urls")
    If rs.RecordCount = 0 Then
        Me.Text6.Text = rs.RecordCount
    Else
        rs.MoveLast
        rs.MoveFirst
        Me.Text6.Text = rs.RecordCount
    End If
    rs.Close
    db.Close
    Set rs = Nothing
    Set db = Nothing

        
End Sub

Private Sub Form_Resize()
On Error GoTo ddddd
        Me.Height = 4125
    Me.Width = 6435
Exit Sub
ddddd:
End Sub

⌨️ 快捷键说明

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