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

📄 dbcombo.frm

📁 VB6程序设计参考手册 -独立源码 VB6程序设计参考手册 -独立源码
💻 FRM
字号:
VERSION 5.00
Object = "{FAEEE763-117E-101B-8933-08002B2F4F5A}#1.1#0"; "DBLIST32.OCX"
Begin VB.Form Form1 
   Caption         =   "订单"
   ClientHeight    =   3165
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4650
   LinkTopic       =   "Form1"
   ScaleHeight     =   3165
   ScaleWidth      =   4650
   StartUpPosition =   3  '窗口缺省
   Begin VB.TextBox Text4 
      DataField       =   "发货日期"
      DataSource      =   "Data1"
      Height          =   375
      Left            =   1560
      TabIndex        =   13
      Text            =   "Text1"
      Top             =   1560
      Width           =   2775
   End
   Begin VB.TextBox Text3 
      DataField       =   "到货日期"
      DataSource      =   "Data1"
      Height          =   375
      Left            =   1560
      TabIndex        =   12
      Text            =   "Text1"
      Top             =   1200
      Width           =   2775
   End
   Begin VB.TextBox Text2 
      DataField       =   "订购日期"
      DataSource      =   "Data1"
      Height          =   375
      Left            =   1560
      TabIndex        =   11
      Text            =   "Text1"
      Top             =   840
      Width           =   2775
   End
   Begin VB.TextBox Text1 
      DataField       =   "订单ID"
      DataSource      =   "Data1"
      Height          =   375
      Left            =   1560
      TabIndex        =   10
      Text            =   "Text1"
      Top             =   120
      Width           =   2775
   End
   Begin VB.Data Data3 
      Caption         =   "Data1"
      Connect         =   "Access 2000;"
      DatabaseName    =   "data.mdb"
      DefaultCursorType=   0  '缺省游标
      DefaultType     =   2  '使用 ODBC
      Exclusive       =   0   'False
      Height          =   345
      Left            =   3000
      Options         =   0
      ReadOnly        =   0   'False
      RecordsetType   =   1  'Dynaset
      RecordSource    =   "运货商"
      Top             =   2880
      Visible         =   0   'False
      Width           =   1335
   End
   Begin VB.Data Data2 
      Caption         =   "Data1"
      Connect         =   "Access 2000;"
      DatabaseName    =   "C:\Documents and Settings\litw\My Documents\newwork\Code\18\data.mdb"
      DefaultCursorType=   0  '缺省游标
      DefaultType     =   2  '使用 ODBC
      Exclusive       =   0   'False
      Height          =   345
      Left            =   1680
      Options         =   0
      ReadOnly        =   0   'False
      RecordsetType   =   1  'Dynaset
      RecordSource    =   "客户"
      Top             =   2400
      Visible         =   0   'False
      Width           =   1335
   End
   Begin VB.Data Data1 
      Caption         =   "Data1"
      Connect         =   "Access 2000;"
      DatabaseName    =   "data.mdb"
      DefaultCursorType=   0  '缺省游标
      DefaultType     =   2  '使用 ODBC
      Exclusive       =   0   'False
      Height          =   285
      Left            =   240
      Options         =   0
      ReadOnly        =   0   'False
      RecordsetType   =   0  'Table
      RecordSource    =   "订单"
      Top             =   2880
      Visible         =   0   'False
      Width           =   1335
   End
   Begin MSDBCtls.DBCombo DBCombo1 
      Bindings        =   "DBCombo.frx":0000
      DataField       =   "客户ID"
      DataSource      =   "Data1"
      Height          =   330
      Left            =   1560
      TabIndex        =   8
      Top             =   480
      Width           =   2775
      _ExtentX        =   4895
      _ExtentY        =   582
      _Version        =   393216
      ListField       =   "公司名称"
      BoundColumn     =   "客户ID"
      Text            =   "DBCombo1"
   End
   Begin VB.CommandButton Command2 
      Caption         =   "下一条"
      Height          =   255
      Left            =   3000
      TabIndex        =   7
      Top             =   2520
      Width           =   1335
   End
   Begin VB.CommandButton Command1 
      Caption         =   "上一条"
      Height          =   255
      Left            =   240
      TabIndex        =   6
      Top             =   2520
      Width           =   1335
   End
   Begin MSDBCtls.DBCombo DBCombo2 
      Bindings        =   "DBCombo.frx":0014
      DataField       =   "运货商"
      DataSource      =   "Data1"
      Height          =   330
      Left            =   1560
      TabIndex        =   9
      Top             =   1920
      Width           =   2775
      _ExtentX        =   4895
      _ExtentY        =   582
      _Version        =   393216
      ListField       =   "公司名称"
      BoundColumn     =   "运货商ID"
      Text            =   "DBCombo1"
   End
   Begin VB.Label Label6 
      Caption         =   "运货方式"
      Height          =   255
      Left            =   360
      TabIndex        =   5
      Top             =   2040
      Width           =   1215
   End
   Begin VB.Label Label5 
      Caption         =   "发货日期"
      Height          =   255
      Left            =   360
      TabIndex        =   4
      Top             =   1680
      Width           =   1215
   End
   Begin VB.Label Label4 
      Caption         =   "客户名称"
      Height          =   255
      Left            =   360
      TabIndex        =   3
      Top             =   600
      Width           =   1215
   End
   Begin VB.Label Label1 
      Caption         =   "订单ID"
      Height          =   255
      Left            =   360
      TabIndex        =   2
      Top             =   240
      Width           =   1215
   End
   Begin VB.Label Label2 
      Caption         =   "订货日期"
      Height          =   255
      Left            =   360
      TabIndex        =   1
      Top             =   960
      Width           =   1215
   End
   Begin VB.Label Label3 
      Caption         =   "到货日期"
      Height          =   255
      Left            =   360
      TabIndex        =   0
      Top             =   1320
      Width           =   1215
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

'下一条
Private Sub command2_Click()
    Data1.Recordset.MoveNext
    Command1.Enabled = True
    If Data1.Recordset.EOF Then
        Data1.Recordset.MoveLast
        Command2.Enabled = False
    End If
End Sub

'上一条
Private Sub command1_Click()
    Data1.Recordset.MovePrevious
    Command2.Enabled = True
    If Data1.Recordset.BOF Then
        Data1.Recordset.MoveFirst
        Command1.Enabled = False
    End If
End Sub

⌨️ 快捷键说明

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