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

📄 form5.frm

📁 食杂店管理系统
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form Form5 
   Caption         =   "Form5"
   ClientHeight    =   8475
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   10185
   LinkTopic       =   "Form5"
   ScaleHeight     =   8475
   ScaleWidth      =   10185
   StartUpPosition =   3  '窗口缺省
   Begin VB.TextBox Text1 
      DataField       =   "商品编号"
      DataSource      =   "Adodc1"
      Height          =   495
      Left            =   2640
      Locked          =   -1  'True
      TabIndex        =   11
      Top             =   360
      Width           =   2175
   End
   Begin VB.TextBox Text2 
      DataField       =   "分类"
      DataSource      =   "Adodc1"
      Height          =   495
      Left            =   2640
      Locked          =   -1  'True
      TabIndex        =   10
      Top             =   1200
      Width           =   2175
   End
   Begin VB.TextBox Text3 
      DataField       =   "商品名称"
      DataSource      =   "Adodc1"
      Height          =   495
      Left            =   2640
      Locked          =   -1  'True
      TabIndex        =   9
      Top             =   1920
      Width           =   2175
   End
   Begin VB.TextBox Text4 
      DataField       =   "规格"
      DataSource      =   "Adodc1"
      Height          =   495
      Left            =   2640
      Locked          =   -1  'True
      TabIndex        =   8
      Top             =   2640
      Width           =   2175
   End
   Begin VB.TextBox Text5 
      DataField       =   "进货价"
      DataSource      =   "Adodc1"
      Height          =   495
      Left            =   2640
      Locked          =   -1  'True
      TabIndex        =   7
      Top             =   3480
      Width           =   2175
   End
   Begin VB.TextBox Text6 
      DataField       =   "零售价"
      DataSource      =   "Adodc1"
      Height          =   495
      Left            =   2640
      TabIndex        =   6
      Top             =   4200
      Width           =   2175
   End
   Begin VB.CommandButton cmdfirst 
      Caption         =   "首记录"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   6960
      TabIndex        =   5
      Top             =   360
      Width           =   1215
   End
   Begin VB.CommandButton cmdpre 
      Caption         =   "前一个"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   6960
      TabIndex        =   4
      Top             =   1080
      Width           =   1215
   End
   Begin VB.CommandButton cmdnext 
      Caption         =   "后一个"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   6960
      TabIndex        =   3
      Top             =   1920
      Width           =   1215
   End
   Begin VB.CommandButton cmdlast 
      Caption         =   "末记录"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   6960
      TabIndex        =   2
      Top             =   2760
      Width           =   1215
   End
   Begin VB.CommandButton Command5 
      Caption         =   "表格显示"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   6960
      TabIndex        =   1
      Top             =   3480
      Width           =   1215
   End
   Begin VB.CommandButton Command6 
      Caption         =   "返回"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   6960
      TabIndex        =   0
      Top             =   4200
      Width           =   1215
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   495
      Left            =   720
      Top             =   8400
      Visible         =   0   'False
      Width           =   3375
      _ExtentX        =   5953
      _ExtentY        =   873
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   2
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   3
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "DSN=是杂点"
      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 Label6 
      Caption         =   "零售价"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   480
      TabIndex        =   18
      Top             =   4440
      Width           =   1335
   End
   Begin VB.Label Label5 
      Caption         =   "进货价"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   480
      TabIndex        =   17
      Top             =   3600
      Width           =   1815
   End
   Begin VB.Label Label4 
      Caption         =   "规格"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   480
      TabIndex        =   16
      Top             =   2880
      Width           =   1815
   End
   Begin VB.Label Label3 
      Caption         =   "商品名称"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   480
      TabIndex        =   15
      Top             =   2040
      Width           =   1815
   End
   Begin VB.Label Label2 
      Caption         =   "分类"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   480
      TabIndex        =   14
      Top             =   1320
      Width           =   1695
   End
   Begin VB.Label Label1 
      Caption         =   "商品编号"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   480
      TabIndex        =   13
      Top             =   480
      Width           =   1335
   End
   Begin VB.Label Label11 
      Height          =   495
      Left            =   5280
      TabIndex        =   12
      Top             =   3240
      Width           =   1695
   End
End
Attribute VB_Name = "Form5"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdfirst_Click()
Adodc1.Recordset.MoveFirst
cmdfirst.Enabled = False
cmdpre.Enabled = False
cmdnext.Enabled = True
cmdlast.Enabled = True
Label11.Caption = "记录:" & Adodc1.Recordset.AbsolutePosition & "/" & Adodc1.Recordset.RecordCount
End Sub

Private Sub cmdlast_Click()
Adodc1.Recordset.MoveLast
cmdfirst.Enabled = True
cmdpre.Enabled = True
cmdnext.Enabled = False
cmdlast.Enabled = False
Label11.Caption = "记录:" & Adodc1.Recordset.AbsolutePosition & "/" & Adodc1.Recordset.RecordCount
End Sub

Private Sub cmdnext_Click()
Adodc1.Recordset.MoveNext
cmdfirst.Enabled = True
cmdpre.Enabled = True
If Adodc1.Recordset.EOF Then
Adodc1.Recordset.MoveLast
cmdnext.Enabled = False
cmdlast.Enabled = False
End If
Label11.Caption = "记录:" & Adodc1.Recordset.AbsolutePosition & "/" & Adodc1.Recordset.RecordCount
End Sub

Private Sub cmdpre_Click()
Adodc1.Recordset.MovePrevious
cmdnext.Enabled = True
cmdlast.Enabled = True
If Adodc1.Recordset.BOF Then
Adodc1.Recordset.MoveFirst
cmdfirst.Enabled = False
cmdpre.Enabled = False
End If
Label11.Caption = "记录:" & Adodc1.Recordset.AbsolutePosition & "/" & Adodc1.Recordset.RecordCount
End Sub

Private Sub Command5_Click()
Form6.Show
Form5.Hide
End Sub

Private Sub Command6_Click()
Unload Me
End Sub

Private Sub Form_Load()
cmdfirst.Enabled = False
cmdpre.Enabled = False
cmdnext.Enabled = True
cmdlast.Enabled = True
Label11.Caption = "记录:" & Adodc1.Recordset.AbsolutePosition & "/" & Adodc1.Recordset.RecordCount

End Sub

⌨️ 快捷键说明

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