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

📄 form1.frm

📁 19851651gjh bhbhkjkjnnjkkj
💻 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 Form1 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "电话邮编查询"
   ClientHeight    =   6810
   ClientLeft      =   45
   ClientTop       =   435
   ClientWidth     =   10170
   Icon            =   "Form1.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   6810
   ScaleWidth      =   10170
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton Command3 
      Caption         =   "关闭"
      Height          =   375
      Left            =   8400
      TabIndex        =   8
      Top             =   6240
      Width           =   1335
   End
   Begin VB.Frame Frame1 
      Caption         =   "说明"
      ForeColor       =   &H00FF8080&
      Height          =   855
      Left            =   240
      TabIndex        =   5
      Top             =   840
      Width           =   9735
      Begin VB.Label Label1 
         BackStyle       =   0  'Transparent
         Caption         =   $"Form1.frx":0CCA
         ForeColor       =   &H00404040&
         Height          =   540
         Index           =   1
         Left            =   600
         TabIndex        =   6
         Top             =   360
         Width           =   8520
      End
   End
   Begin VB.CommandButton Command2 
      Caption         =   "手机归属地查找"
      Height          =   270
      Left            =   4440
      Picture         =   "Form1.frx":0D55
      TabIndex        =   2
      ToolTipText     =   "查找"
      Top             =   280
      Width           =   1575
   End
   Begin MSDataGridLib.DataGrid DataGrid1 
      Bindings        =   "Form1.frx":10DF
      Height          =   3975
      Left            =   240
      TabIndex        =   3
      Top             =   2160
      Width           =   9735
      _ExtentX        =   17171
      _ExtentY        =   7011
      _Version        =   393216
      HeadLines       =   1
      RowHeight       =   15
      BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         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.TextBox TextTXL 
      Appearance      =   0  'Flat
      Height          =   270
      Left            =   1320
      TabIndex        =   0
      Top             =   280
      Width           =   1695
   End
   Begin VB.CommandButton Command1 
      Caption         =   "查找"
      Default         =   -1  'True
      Height          =   270
      Left            =   3480
      Picture         =   "Form1.frx":10F4
      TabIndex        =   1
      ToolTipText     =   "查找"
      Top             =   280
      Width           =   855
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   330
      Left            =   7560
      Top             =   240
      Visible         =   0   'False
      Width           =   1695
      _ExtentX        =   2990
      _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 VB.Label Label1 
      BackStyle       =   0  'Transparent
      Caption         =   "查找结果"
      Height          =   255
      Index           =   2
      Left            =   360
      TabIndex        =   7
      Top             =   1920
      Width           =   855
   End
   Begin VB.Label Label1 
      BackStyle       =   0  'Transparent
      Caption         =   "关键字"
      Height          =   255
      Index           =   0
      Left            =   480
      TabIndex        =   4
      Top             =   340
      Width           =   615
   End
   Begin VB.Shape Shape2 
      BorderStyle     =   3  'Dot
      Height          =   330
      Left            =   1245
      Top             =   260
      Width           =   4875
   End
   Begin VB.Shape Shape1 
      BackColor       =   &H00FFFFFF&
      BackStyle       =   1  'Opaque
      BorderStyle     =   0  'Transparent
      Height          =   525
      Index           =   2
      Left            =   240
      Shape           =   4  'Rounded Rectangle
      Top             =   180
      Width           =   6015
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If Len(TextTXL) > 1 Then
    a1 = "区号 like'%" + TextTXL + "%' or 邮编 like'%" + TextTXL + "%' or 县市名 like'%" + TextTXL + "%' or 省名 like'%" + TextTXL + "%'"
    Adodc1.RecordSource = "SELECT 省名,县市名,邮编,区号 FROM data WHERE " + a1
    Adodc1.Refresh
Else
    MsgBox "对不起,两个字以下不能进行查找!", vbCritical, "错误"
End If
End Sub

Private Sub Command3_Click()
Unload Me
End Sub

Private Sub Form_Load()
Adodc1.ConnectionString = acs
End Sub
Private Sub Command2_Click()
If Len(TextTXL) >= 7 Then
    Adodc1.RecordSource = "SELECT 地区,城市,0 & 区号 as 区号,类型 FROM sj WHERE a <='" + Mid(TextTXL, 1, 7) + "' and b >='" + Mid(TextTXL, 1, 7) + "'"
    Adodc1.Refresh
Else
    MsgBox "您输入的手机号错误!", vbCritical, "错误"
End If
End Sub

⌨️ 快捷键说明

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