main客户查询结果.frm

来自「1. 观察计算机显示系统构成」· FRM 代码 · 共 732 行 · 第 1/2 页

FRM
732 行
字号
            Width           =   1545
         End
         Begin VB.TextBox kh 
            Appearance      =   0  'Flat
            Enabled         =   0   'False
            BeginProperty Font 
               Name            =   "宋体"
               Size            =   10.5
               Charset         =   134
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Height          =   315
            Index           =   9
            Left            =   6645
            TabIndex        =   18
            Top             =   2940
            Width           =   1545
         End
         Begin VB.Label Label1 
            Caption         =   "客户编号:              客户名称:             客户简称:              客户地址:             所属地区:             客户电话: "
            BeginProperty Font 
               Name            =   "宋体"
               Size            =   10.5
               Charset         =   134
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Height          =   2400
            Left            =   90
            TabIndex        =   31
            Top             =   405
            Width           =   1200
         End
         Begin VB.Label Label3 
            Caption         =   "邮政编码:"
            BeginProperty Font 
               Name            =   "宋体"
               Size            =   10.5
               Charset         =   134
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Height          =   270
            Left            =   5625
            TabIndex        =   30
            Top             =   2085
            Width           =   1020
         End
         Begin VB.Label Label4 
            BackStyle       =   0  'Transparent
            Caption         =   " 传真  :           电话  :"
            BeginProperty Font 
               Name            =   "宋体"
               Size            =   10.5
               Charset         =   134
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Height          =   855
            Left            =   5700
            TabIndex        =   29
            Top             =   2550
            Width           =   840
         End
         Begin VB.Label Label2 
            Caption         =   "业务联系人:"
            BeginProperty Font 
               Name            =   "宋体"
               Size            =   10.5
               Charset         =   134
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Height          =   300
            Left            =   60
            TabIndex        =   28
            Top             =   2910
            Width           =   1185
         End
      End
      Begin VB.Frame Frame3 
         Height          =   3405
         Left            =   -74925
         TabIndex        =   7
         Top             =   495
         Width           =   8385
         Begin VB.TextBox kh 
            Appearance      =   0  'Flat
            Enabled         =   0   'False
            BeginProperty Font 
               Name            =   "宋体"
               Size            =   10.5
               Charset         =   134
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Height          =   315
            Index           =   10
            Left            =   1350
            TabIndex        =   14
            Top             =   345
            Width           =   6930
         End
         Begin VB.TextBox kh 
            Appearance      =   0  'Flat
            Enabled         =   0   'False
            BeginProperty Font 
               Name            =   "宋体"
               Size            =   10.5
               Charset         =   134
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Height          =   315
            Index           =   11
            Left            =   1350
            TabIndex        =   13
            Top             =   750
            Width           =   6930
         End
         Begin VB.TextBox kh 
            Appearance      =   0  'Flat
            Enabled         =   0   'False
            BeginProperty Font 
               Name            =   "宋体"
               Size            =   10.5
               Charset         =   134
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Height          =   315
            Index           =   12
            Left            =   1350
            TabIndex        =   12
            Top             =   1170
            Width           =   6930
         End
         Begin VB.TextBox kh 
            Appearance      =   0  'Flat
            Enabled         =   0   'False
            BeginProperty Font 
               Name            =   "宋体"
               Size            =   10.5
               Charset         =   134
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Height          =   315
            Index           =   13
            Left            =   1350
            TabIndex        =   11
            Top             =   1590
            Width           =   6930
         End
         Begin VB.TextBox kh 
            Appearance      =   0  'Flat
            Enabled         =   0   'False
            BeginProperty Font 
               Name            =   "宋体"
               Size            =   10.5
               Charset         =   134
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Height          =   315
            Index           =   14
            Left            =   1350
            TabIndex        =   10
            Top             =   2025
            Width           =   6930
         End
         Begin VB.TextBox kh 
            Appearance      =   0  'Flat
            Enabled         =   0   'False
            BeginProperty Font 
               Name            =   "宋体"
               Size            =   10.5
               Charset         =   134
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Height          =   315
            Index           =   15
            Left            =   1350
            TabIndex        =   9
            Top             =   2445
            Width           =   6930
         End
         Begin VB.TextBox kh 
            Appearance      =   0  'Flat
            Enabled         =   0   'False
            BeginProperty Font 
               Name            =   "宋体"
               Size            =   10.5
               Charset         =   134
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Height          =   315
            Index           =   16
            Left            =   1350
            TabIndex        =   8
            Top             =   2865
            Width           =   6930
         End
         Begin VB.Label Label5 
            Caption         =   "开户银行  :             银行账号  :           纳税人登记:"
            BeginProperty Font 
               Name            =   "宋体"
               Size            =   10.5
               Charset         =   134
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Height          =   1200
            Left            =   105
            TabIndex        =   16
            Top             =   375
            Width           =   1200
         End
         Begin VB.Label Label8 
            Caption         =   "预付金额  :            应付金额  :           实际欠款  :            网址或信箱:"
            BeginProperty Font 
               Name            =   "宋体"
               Size            =   10.5
               Charset         =   134
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Height          =   1560
            Left            =   105
            TabIndex        =   15
            Top             =   1635
            Width           =   1200
         End
      End
      Begin VB.Label czjl 
         BackStyle       =   0  'Transparent
         Height          =   285
         Left            =   4050
         TabIndex        =   32
         Top             =   -585
         Width           =   4905
      End
   End
   Begin VB.Label Label6 
      BackStyle       =   0  'Transparent
      Caption         =   "查询结果"
      BeginProperty Font 
         Name            =   "隶书"
         Size            =   21.75
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   3660
      TabIndex        =   33
      Top             =   15
      Width           =   1815
   End
End
Attribute VB_Name = "main客户查询结果"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim i As Integer
Private Sub Form_Load()
 On Error Resume Next
  frm主窗体.StatusBar1.Panels(1) = Me.Caption
'  Data1.DatabaseName = App.Path & "\db2.mdb"
  For i = 0 To 16
      kh(i).Enabled = False
  Next i
End Sub
Private Sub Command1_Click()
 On Error Resume Next
Adodc1.RecordSource = "select * from 客户信息表"
Adodc1.Refresh
  If Not Adodc1.Recordset.BOF Then
     Adodc1.Recordset.MoveFirst
     For i = 0 To 16
       If Adodc1.Recordset.Fields(i) <> "" Then kh(i).Text = Adodc1.Recordset.Fields(i)
     Next i
  End If
End Sub
Private Sub Command2_Click()
 On Error Resume Next
Number = kh(0).Text
Adodc2.RecordSource = "select * from 客户信息表 where 客户编号 <= '" + Number + "' "
Adodc2.Refresh
  If Adodc2.Recordset.RecordCount <> 0 Then
     Adodc2.Recordset.MoveLast
     If Adodc2.Recordset.BOF = False Then Adodc2.Recordset.MovePrevious
     If Adodc2.Recordset.BOF = True Then Adodc2.Recordset.MoveFirst
     For i = 0 To 16
       If Adodc2.Recordset.Fields(i) <> "" Then kh(i).Text = Adodc2.Recordset.Fields(i)
     Next i
  End If
End Sub
Private Sub Command3_Click()
 On Error Resume Next
Number = kh(0).Text
Adodc2.RecordSource = "select * from 客户信息表 where 客户编号 >= '" + Number + "' "
Adodc2.Refresh
If Adodc2.Recordset.RecordCount <> 0 Then
If Adodc2.Recordset.EOF = False Then Adodc2.Recordset.MoveNext
If Adodc2.Recordset.EOF = True Then Adodc2.Recordset.MoveLast
For i = 0 To 16
If Adodc2.Recordset.Fields(i) <> "" Then kh(i).Text = Adodc2.Recordset.Fields(i)
Next i
End If
End Sub
Private Sub Command4_Click()
 On Error Resume Next
Adodc1.RecordSource = "select * from 客户信息表 "
Adodc1.Refresh
If Not Adodc1.Recordset.EOF Then
Adodc1.Recordset.MoveLast
For i = 0 To 16
If Adodc1.Recordset.Fields(i) <> "" Then kh(i).Text = Adodc1.Recordset.Fields(i)
Next i
End If
End Sub
Private Sub ComEnd_Click()
  frm主窗体.Enabled = True
  Unload Me
End Sub

Private Sub Form_Unload(Cancel As Integer)
 frm主窗体.StatusBar1.Panels(1) = "杨扬工作室 作者:小杨"
End Sub

⌨️ 快捷键说明

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