VERSION 5.00
Begin VB.Form frmData 
   Caption         =   "Программа Данные"
   ClientHeight    =   3195
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   3195
   ScaleWidth      =   4680
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton cmdDelete 
      Caption         =   "Удалить запись"
      Height          =   495
      Left            =   2160
      TabIndex        =   6
      Top             =   0
      Width           =   1215
   End
   Begin VB.CommandButton cmdAddRecord 
      Caption         =   "Добавить запись"
      Height          =   495
      Left            =   2760
      TabIndex        =   5
      Top             =   2520
      Width           =   1215
   End
   Begin VB.CheckBox Check1 
      Caption         =   "Check1"
      DataField       =   "InStock"
      DataSource      =   "Data1"
      Height          =   495
      Left            =   0
      TabIndex        =   4
      Top             =   0
      Width           =   1215
   End
   Begin VB.CommandButton cmdSelect 
      Caption         =   "Выборка"
      Height          =   495
      Left            =   1440
      TabIndex        =   3
      Top             =   2520
      Width           =   1215
   End
   Begin VB.TextBox txtDescription 
      DataField       =   "Description"
      DataSource      =   "Data1"
      Height          =   495
      Left            =   840
      TabIndex        =   2
      Top             =   600
      Width           =   3375
   End
   Begin VB.CommandButton cmdExit 
      Caption         =   "Exit"
      Height          =   495
      Left            =   120
      TabIndex        =   1
      Top             =   2520
      Width           =   1215
   End
   Begin VB.TextBox txtpartNumber 
      DataField       =   "partNum"
      DataSource      =   "Data1"
      Height          =   495
      Left            =   840
      TabIndex        =   0
      Top             =   1440
      Width           =   3375
   End
   Begin VB.Data Data1 
      Caption         =   "Data1"
      Connect         =   "Access"
      DatabaseName    =   "E:\VB98\PRG\test.mdb"
      DefaultCursorType=   0  'DefaultCursor
      DefaultType     =   2  'UseODBC
      Exclusive       =   0   'False
      Height          =   345
      Left            =   360
      Options         =   0
      ReadOnly        =   0   'False
      RecordsetType   =   1  'Dynaset
      RecordSource    =   "Parts"
      Top             =   2040
      Width           =   3900
   End
End
Attribute VB_Name = "frmData"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdAddRecord_Click()
Data1.Recordset.AddNew
End Sub

Private Sub cmdDelete_Click()
Data1.Recordset.Delete
Data1.Recordset.MoveNext
End Sub

Private Sub cmdExit_Click()
End
End Sub

Private Sub cmdSelect_Click()
Data1.RecordSource = "Select*from parts where Instock=True"
Data1.Refresh
End Sub

