frmquery.frm

来自「水电费收费管理系统」· FRM 代码 · 共 102 行

FRM
102
字号
VERSION 5.00
Begin VB.Form frmquery 
   Caption         =   "查询定位"
   ClientHeight    =   2160
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4905
   ControlBox      =   0   'False
   LinkTopic       =   "Form1"
   ScaleHeight     =   2160
   ScaleWidth      =   4905
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command2 
      Caption         =   "取消"
      Height          =   375
      Left            =   3000
      TabIndex        =   5
      Top             =   1320
      Width           =   1215
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确定"
      Height          =   375
      Left            =   840
      TabIndex        =   2
      Top             =   1320
      Width           =   1215
   End
   Begin VB.ComboBox Combo1 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   330
      Left            =   840
      TabIndex        =   1
      Text            =   "Combo1"
      Top             =   360
      Width           =   1575
   End
   Begin VB.TextBox Text1 
      Height          =   330
      Left            =   3000
      TabIndex        =   0
      Text            =   "Text1"
      Top             =   360
      Width           =   1335
   End
   Begin VB.Label Label2 
      Caption         =   "="
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   2640
      TabIndex        =   4
      Top             =   360
      Width           =   255
   End
   Begin VB.Label Label1 
      Caption         =   "查询方式"
      Height          =   375
      Left            =   240
      TabIndex        =   3
      Top             =   360
      Width           =   495
   End
End
Attribute VB_Name = "frmquery"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If Text1 = "" Then
        Exit Sub
    End If
    
    frmChildInput.Adodc1.Recordset.Requery
    frmChildInput.Adodc1.Refresh
    frmChildInput.Adodc1.Recordset.Find " NAME='" & Text1 & "'", , adSearchForward, 0

 If frmChildInput.Adodc1.Recordset.EOF Or frmChildInput.Adodc1.Recordset.BOF Then
    MsgBox "没有此记录", vbOKOnly + vbExclamation
    
    Exit Sub
    End If
    Unload Me
    
End Sub

⌨️ 快捷键说明

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