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

📄 frmseearchive.frm

📁 适合乡镇供电所使用电费处理系统v3 软件
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form frmSeeArchive 
   Caption         =   "用户档案查询"
   ClientHeight    =   5175
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   7785
   LinkTopic       =   "Form2"
   ScaleHeight     =   5175
   ScaleWidth      =   7785
   StartUpPosition =   3  '窗口缺省
   Begin VB.OptionButton Option3 
      Caption         =   "全部"
      Height          =   300
      Left            =   4050
      TabIndex        =   6
      Top             =   150
      Width           =   1095
   End
   Begin VB.OptionButton Option2 
      Caption         =   "户名"
      Height          =   180
      Left            =   2190
      TabIndex        =   5
      Top             =   195
      Width           =   1500
   End
   Begin VB.OptionButton Option1 
      Caption         =   "户号"
      Height          =   300
      Left            =   360
      TabIndex        =   4
      Top             =   165
      Value           =   -1  'True
      Width           =   1020
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   330
      Left            =   165
      Top             =   4860
      Visible         =   0   'False
      Width           =   1350
      _ExtentX        =   2381
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   8
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   ""
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   ""
      Caption         =   "Adodc1"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin MSDataGridLib.DataGrid DataGrid1 
      Height          =   3915
      Left            =   105
      TabIndex        =   3
      Top             =   1155
      Width           =   7590
      _ExtentX        =   13388
      _ExtentY        =   6906
      _Version        =   393216
      AllowUpdate     =   0   'False
      HeadLines       =   1
      RowHeight       =   15
      BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9.75
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ColumnCount     =   2
      BeginProperty Column00 
         DataField       =   ""
         Caption         =   ""
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column01 
         DataField       =   ""
         Caption         =   ""
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      SplitCount      =   1
      BeginProperty Split0 
         BeginProperty Column00 
         EndProperty
         BeginProperty Column01 
         EndProperty
      EndProperty
   End
   Begin VB.ComboBox Combo2 
      Height          =   300
      Left            =   3255
      TabIndex        =   2
      Text            =   "Combo2"
      Top             =   600
      Width           =   2325
   End
   Begin VB.CommandButton Command1 
      Caption         =   "查询"
      Height          =   285
      Left            =   6255
      TabIndex        =   1
      Top             =   585
      Width           =   1350
   End
   Begin VB.ComboBox Combo1 
      Height          =   300
      Left            =   255
      TabIndex        =   0
      Text            =   "Combo1"
      Top             =   585
      Width           =   2655
   End
End
Attribute VB_Name = "frmSeeArchive"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub Command1_Click()
    If Option1.Value = True Then
       Adodc1.RecordSource = ("select 用户电费.镇代码,用户电费.村代码,用户电费.镇村代码,用户电费.组合编码,用户电费.用户编码,用户电费.辅助号,用户电费.用户名称,用户电费.全称,用户电费.地址,用户电费.电话,用户电费.开户银行,用户电费.账号,用户电费.台区,用户电费.电价类别,用户电费.电价,用户电费.倍率,用户电费.表损 from 用户电费 where 用户电费.组合编码 ='" & Combo1.Text & "' order by 用户电费.组合编码 asc")
    End If
    If Option2.Value = True Then
       Adodc1.RecordSource = ("select 用户电费.镇代码,用户电费.村代码,用户电费.镇村代码,用户电费.组合编码,用户电费.用户编码,用户电费.辅助号,用户电费.用户名称,用户电费.全称,用户电费.地址,用户电费.电话,用户电费.开户银行,用户电费.账号,用户电费.台区,用户电费.电价类别,用户电费.电价,用户电费.倍率,用户电费.表损 from 用户电费 where 用户电费.用户名称 ='" & Combo2.Text & "' order by 用户电费.组合编码 asc")
    End If
    If Option3.Value = True Then
       Adodc1.RecordSource = ("select 用户电费.镇代码,用户电费.村代码,用户电费.镇村代码,用户电费.组合编码,用户电费.用户编码,用户电费.辅助号,用户电费.用户名称,用户电费.全称,用户电费.地址,用户电费.电话,用户电费.开户银行,用户电费.账号,用户电费.台区,用户电费.电价类别,用户电费.电价,用户电费.倍率,用户电费.表损 from 用户电费 order by 用户电费.组合编码 asc")
    End If
    
     Adodc1.Refresh
     Set DataGrid1.DataSource = Adodc1
End Sub

Private Sub Form_Load()
    Dim i As Integer
    OpenMdb
    Set MdbR = NdMd.OpenRecordset("select distinct 组合编码 from 用户电费")
    If MdbR.RecordCount = 0 Then
       MsgBox "请建立数据!", vbInformation
       Exit Sub
    Else
       MdbR.MoveLast
       MdbR.MoveFirst
       With MdbR
            For i = 0 To .RecordCount - 1
                Combo1.AddItem .Fields!组合编码
                .MoveNext
            Next
            Combo1.ListIndex = 0
       End With
    End If
    Set MdbR = NdMd.OpenRecordset("select distinct 用户名称 from 用户电费")
    If MdbR.RecordCount = 0 Then
       MsgBox "请建立数据!", vbInformation
       Exit Sub
    Else
       With MdbR
            For i = 0 To .RecordCount - 1
                Combo2.AddItem .Fields!用户名称 & ""
                .MoveNext
            Next
            Combo2.ListIndex = 0
       End With
    End If
     Adodc1.ConnectionString = "DBQ=" & App.Path & "\Data\eletricity.Mdb" & ";Driver={Microsoft Access Driver (*.mdb)};DriverId=281;FIL=MS Access;MaxBufferSize=2048;MaxScanRows=8;PageTimeout=5;PWD=;SafeTransactions=0;Threads=3;UID=admin;UserCommitSync=Yes;"
     Adodc1.RecordSource = ("select 用户电费.镇代码,用户电费.村代码,用户电费.镇村代码,用户电费.组合编码,用户电费.用户编码,用户电费.辅助号,用户电费.用户名称,用户电费.全称,用户电费.地址,用户电费.电话,用户电费.开户银行,用户电费.账号,用户电费.台区,用户电费.电价类别,用户电费.电价,用户电费.倍率,用户电费.表损 from 用户电费 where 用户电费.组合编码 ='" & Combo1.Text & "' order by 用户电费.组合编码 asc")
     Adodc1.Refresh


End Sub

⌨️ 快捷键说明

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