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

📄 市区.frm

📁 以前做的移动公司的一个多媒体查询系统,有话费查询
💻 FRM
字号:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Begin VB.Form Form4 
   BorderStyle     =   0  'None
   Caption         =   "Form4"
   ClientHeight    =   9000
   ClientLeft      =   0
   ClientTop       =   0
   ClientWidth     =   12000
   BeginProperty Font 
      Name            =   "宋体"
      Size            =   15
      Charset         =   134
      Weight          =   400
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   LinkTopic       =   "Form4"
   Picture         =   "市区.frx":0000
   ScaleHeight     =   9000
   ScaleWidth      =   12000
   ShowInTaskbar   =   0   'False
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton Command5 
      Height          =   855
      Left            =   8520
      Picture         =   "市区.frx":15F942
      Style           =   1  'Graphical
      TabIndex        =   14
      Top             =   7800
      Width           =   1335
   End
   Begin VB.CommandButton Command4 
      Height          =   855
      Left            =   10200
      Picture         =   "市区.frx":163DC4
      Style           =   1  'Graphical
      TabIndex        =   13
      ToolTipText     =   "返回"
      Top             =   7800
      Width           =   1215
   End
   Begin VB.CommandButton Command3 
      Height          =   870
      Left            =   2760
      Picture         =   "市区.frx":167526
      Style           =   1  'Graphical
      TabIndex        =   12
      Top             =   7080
      Width           =   1740
   End
   Begin VB.CommandButton Command2 
      Height          =   870
      Left            =   2760
      Picture         =   "市区.frx":16C9C8
      Style           =   1  'Graphical
      TabIndex        =   11
      Top             =   5880
      Width           =   1740
   End
   Begin VB.CommandButton Command1 
      Height          =   870
      Left            =   2760
      Picture         =   "市区.frx":1718E2
      Style           =   1  'Graphical
      TabIndex        =   10
      Top             =   4680
      Width           =   1740
   End
   Begin VB.CommandButton Cmd_11 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   870
      Left            =   2760
      Picture         =   "市区.frx":1768E4
      Style           =   1  'Graphical
      TabIndex        =   9
      Top             =   3360
      Width           =   1740
   End
   Begin VB.CommandButton Cmd_10 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   870
      Left            =   2760
      Picture         =   "市区.frx":17BBA6
      Style           =   1  'Graphical
      TabIndex        =   8
      Top             =   2160
      Width           =   1740
   End
   Begin MSFlexGridLib.MSFlexGrid MSFG_code 
      Height          =   6570
      Left            =   5040
      TabIndex        =   7
      Top             =   720
      Width           =   5280
      _ExtentX        =   9313
      _ExtentY        =   11589
      _Version        =   327680
      FixedCols       =   0
      ForeColor       =   8421631
      ForeColorFixed  =   16777215
      ForeColorSel    =   -2147483635
      GridColor       =   0
      ScrollBars      =   2
   End
   Begin VB.CommandButton Cmd_9 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   870
      Left            =   2760
      Picture         =   "市区.frx":180E68
      Style           =   1  'Graphical
      TabIndex        =   6
      Top             =   720
      Width           =   1740
   End
   Begin VB.CommandButton Cmd_8 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   870
      Left            =   630
      Picture         =   "市区.frx":18637E
      Style           =   1  'Graphical
      TabIndex        =   5
      Top             =   7080
      Width           =   1740
   End
   Begin VB.CommandButton Cmd_7 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   870
      Left            =   630
      Picture         =   "市区.frx":18B7A0
      Style           =   1  'Graphical
      TabIndex        =   4
      Top             =   5880
      Width           =   1740
   End
   Begin VB.CommandButton Cmd_6 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   870
      Left            =   630
      Picture         =   "市区.frx":190C42
      Style           =   1  'Graphical
      TabIndex        =   3
      Top             =   4680
      Width           =   1740
   End
   Begin VB.CommandButton Cmd_5 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   870
      Left            =   720
      Picture         =   "市区.frx":195E14
      Style           =   1  'Graphical
      TabIndex        =   2
      Top             =   3360
      Width           =   1740
   End
   Begin VB.CommandButton Cmd_4 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   870
      Left            =   720
      Picture         =   "市区.frx":19AE8A
      Style           =   1  'Graphical
      TabIndex        =   1
      Top             =   2160
      Width           =   1740
   End
   Begin VB.CommandButton Cmd_1 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   870
      Left            =   720
      Picture         =   "市区.frx":19FF00
      Style           =   1  'Graphical
      TabIndex        =   0
      Top             =   720
      Width           =   1740
   End
End
Attribute VB_Name = "Form4"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Sub sub_code(str_reason As String)
    Dim DB As Database
    Dim rdset_code As Recordset
    Dim num_row As Integer
    Set DB = OpenDatabase(App.Path & "\zj.mdb")
    Set rdset_code = DB.OpenRecordset("select * from shandong_zip where " & str_reason)

    MSFG_code.Rows = 1
    num_row = 0
    MSFG_code.Col = 1
    While Not rdset_code.EOF
        MSFG_code.Rows = MSFG_code.Rows + 1
        num_row = num_row + 1
        MSFG_code.Row = num_row
        MSFG_code.Text = rdset_code.Fields(3)
        MSFG_code.Col = 0
        MSFG_code.Text = rdset_code.Fields(2)
        MSFG_code.Col = 1
        rdset_code.MoveNext
    Wend
    rdset_code.Close
    DB.Close
End Sub
Private Sub Cmd_1_Click()
    Call sub_code("val(笔划) > 0 and val(笔划) < 4")
End Sub

Private Sub Cmd_10_Click()
     Call sub_code("val(笔划)=10")
End Sub

Private Sub Cmd_11_Click()
     Call sub_code("val(笔划)=11")
End Sub

Private Sub Cmd_4_Click()
    Call sub_code("val(笔划)=4")
End Sub

Private Sub Cmd_5_Click()
    Call sub_code("val(笔划)=5")
End Sub

Private Sub Cmd_6_Click()
     Call sub_code("val(笔划)=6")
End Sub

Private Sub Cmd_7_Click()
     Call sub_code("val(笔划)=7")
End Sub

Private Sub Cmd_8_Click()
     Call sub_code("val(笔划)=8")
End Sub

Private Sub Cmd_9_Click()
     Call sub_code("val(笔划)=9")
End Sub

Private Sub Command1_Click()
     Call sub_code("val(笔划)=12")
End Sub

Private Sub Command2_Click()
     Call sub_code("val(笔划)=13")
End Sub

Private Sub Command3_Click()
     Call sub_code("val(笔划)>13")
End Sub

Private Sub Command4_Click()
    Form1.Show
    Unload Me
End Sub

Private Sub Command5_Click()
    Form2.Show
    Unload Me
End Sub

Private Sub Form_Load()
    MSFG_code.Rows = 1
    MSFG_code.Cols = 2
    MSFG_code.ColWidth(0) = 2000
    MSFG_code.ColWidth(1) = 3000
    MSFG_code.Col = 0
    MSFG_code.Row = 0
    MSFG_code.Text = "  路名"
    MSFG_code.Col = 1
    MSFG_code.Text = "  邮政编码"
End Sub

⌨️ 快捷键说明

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