home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic 4 Unleashed / Visual_Basic_4_Unleashed_SAMS_Publishing_1995.iso / source / chap27 / frm327.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1995-09-28  |  8.1 KB  |  279 lines

  1. VERSION 4.00
  2. Begin VB.Form form3 
  3.    Caption         =   "Bound Form"
  4.    ClientHeight    =   4785
  5.    ClientLeft      =   1980
  6.    ClientTop       =   1860
  7.    ClientWidth     =   6690
  8.    Height          =   5190
  9.    Left            =   1920
  10.    LinkTopic       =   "Form1"
  11.    ScaleHeight     =   4785
  12.    ScaleWidth      =   6690
  13.    Top             =   1515
  14.    Width           =   6810
  15.    Begin VB.CommandButton cmdadd 
  16.       Caption         =   "&Add"
  17.       Height          =   295
  18.       Left            =   3780
  19.       TabIndex        =   23
  20.       Top             =   4080
  21.       Width           =   1215
  22.    End
  23.    Begin VB.CommandButton cmdrefresh 
  24.       Caption         =   "&Refresh"
  25.       Height          =   295
  26.       Left            =   2400
  27.       TabIndex        =   22
  28.       Top             =   4080
  29.       Width           =   1215
  30.    End
  31.    Begin VB.CommandButton cmdupdate 
  32.       Caption         =   "&Update "
  33.       Height          =   295
  34.       Left            =   900
  35.       TabIndex        =   21
  36.       Top             =   4080
  37.       Width           =   1215
  38.    End
  39.    Begin VB.ComboBox comfield 
  40.       Height          =   315
  41.       Left            =   1560
  42.       Style           =   2  'Dropdown List
  43.       TabIndex        =   19
  44.       Top             =   3120
  45.       Visible         =   0   'False
  46.       Width           =   1875
  47.    End
  48.    Begin VB.TextBox txtcomments 
  49.       DataField       =   "Comments"
  50.       DataSource      =   "Data1"
  51.       Height          =   285
  52.       Left            =   1560
  53.       MultiLine       =   -1  'True
  54.       TabIndex        =   17
  55.       Top             =   2280
  56.       Width           =   4635
  57.    End
  58.    Begin VB.TextBox txtnotes 
  59.       DataField       =   "Notes"
  60.       DataSource      =   "Data1"
  61.       Height          =   285
  62.       Left            =   1560
  63.       MultiLine       =   -1  'True
  64.       TabIndex        =   15
  65.       Top             =   2700
  66.       Width           =   4635
  67.    End
  68.    Begin VB.TextBox txtdescription 
  69.       DataField       =   "Description"
  70.       DataSource      =   "Data1"
  71.       Height          =   285
  72.       Left            =   1560
  73.       MultiLine       =   -1  'True
  74.       TabIndex        =   13
  75.       Top             =   1860
  76.       Width           =   4635
  77.    End
  78.    Begin VB.TextBox txtpubid 
  79.       DataField       =   "PubID"
  80.       DataSource      =   "Data1"
  81.       Height          =   285
  82.       Left            =   1560
  83.       MultiLine       =   -1  'True
  84.       TabIndex        =   11
  85.       Top             =   180
  86.       Width           =   855
  87.    End
  88.    Begin VB.TextBox txtisbn 
  89.       DataField       =   "ISBN"
  90.       DataSource      =   "Data1"
  91.       Height          =   285
  92.       Left            =   1560
  93.       MultiLine       =   -1  'True
  94.       TabIndex        =   9
  95.       Top             =   600
  96.       Width           =   1635
  97.    End
  98.    Begin VB.TextBox txtyear 
  99.       DataField       =   "Year Published"
  100.       DataSource      =   "Data1"
  101.       Height          =   315
  102.       Left            =   5040
  103.       MultiLine       =   -1  'True
  104.       TabIndex        =   7
  105.       Top             =   180
  106.       Width           =   855
  107.    End
  108.    Begin VB.CheckBox chkeof 
  109.       Caption         =   "EOF Reached"
  110.       Enabled         =   0   'False
  111.       Height          =   295
  112.       Left            =   2340
  113.       TabIndex        =   6
  114.       Top             =   3660
  115.       Width           =   1875
  116.    End
  117.    Begin VB.CheckBox chkbof 
  118.       Caption         =   "BOF Reached"
  119.       Enabled         =   0   'False
  120.       Height          =   295
  121.       Left            =   180
  122.       TabIndex        =   5
  123.       Top             =   3660
  124.       Width           =   1875
  125.    End
  126.    Begin VB.CommandButton cmdexit 
  127.       Caption         =   "E&xit"
  128.       Height          =   295
  129.       Left            =   5220
  130.       TabIndex        =   4
  131.       Top             =   4080
  132.       Width           =   1215
  133.    End
  134.    Begin VB.Data Data1 
  135.       Align           =   1  'Align Top
  136.       BOFAction       =   1  'BOF
  137.       Caption         =   "Data Control"
  138.       Connect         =   "Access"
  139.       DatabaseName    =   "biblio.mdb"
  140.       EOFAction       =   2  'Add New
  141.       Exclusive       =   0   'False
  142.       Height          =   300
  143.       Left            =   0
  144.       Options         =   0
  145.       ReadOnly        =   -1  'True
  146.       RecordsetType   =   1  'Dynaset
  147.       RecordSource    =   ""
  148.       Top             =   0
  149.       Visible         =   0   'False
  150.       Width           =   6690
  151.    End
  152.    Begin VB.TextBox txtsubject 
  153.       DataField       =   "Subject"
  154.       DataSource      =   "Data1"
  155.       Height          =   285
  156.       Left            =   1560
  157.       MultiLine       =   -1  'True
  158.       TabIndex        =   3
  159.       Top             =   1440
  160.       Width           =   4635
  161.    End
  162.    Begin VB.TextBox txttitle 
  163.       DataField       =   "Title"
  164.       DataSource      =   "Data1"
  165.       Height          =   285
  166.       Left            =   1560
  167.       MultiLine       =   -1  'True
  168.       TabIndex        =   2
  169.       Top             =   1020
  170.       Width           =   4635
  171.    End
  172.    Begin VB.Label Label1 
  173.       Caption         =   "Order by"
  174.       Height          =   285
  175.       Index           =   7
  176.       Left            =   180
  177.       TabIndex        =   20
  178.       Top             =   3120
  179.       Visible         =   0   'False
  180.       Width           =   1215
  181.    End
  182.    Begin VB.Label Label1 
  183.       Caption         =   "Comments"
  184.       Height          =   285
  185.       Index           =   6
  186.       Left            =   180
  187.       TabIndex        =   18
  188.       Top             =   2280
  189.       Width           =   1215
  190.    End
  191.    Begin VB.Label Label1 
  192.       Caption         =   "Notes"
  193.       Height          =   285
  194.       Index           =   5
  195.       Left            =   180
  196.       TabIndex        =   16
  197.       Top             =   2700
  198.       Width           =   1215
  199.    End
  200.    Begin VB.Label Label1 
  201.       Caption         =   "Description"
  202.       Height          =   285
  203.       Index           =   4
  204.       Left            =   180
  205.       TabIndex        =   14
  206.       Top             =   1860
  207.       Width           =   1215
  208.    End
  209.    Begin VB.Label Label1 
  210.       Caption         =   "Pub. ID"
  211.       Height          =   285
  212.       Index           =   3
  213.       Left            =   180
  214.       TabIndex        =   12
  215.       Top             =   180
  216.       Width           =   1215
  217.    End
  218.    Begin VB.Label Label1 
  219.       Caption         =   "ISBN"
  220.       Height          =   285
  221.       Index           =   2
  222.       Left            =   180
  223.       TabIndex        =   10
  224.       Top             =   600
  225.       Width           =   1215
  226.    End
  227.    Begin VB.Label Label1 
  228.       Caption         =   "Year Published"
  229.       Height          =   285
  230.       Index           =   1
  231.       Left            =   3660
  232.       TabIndex        =   8
  233.       Top             =   180
  234.       Width           =   1215
  235.    End
  236.    Begin VB.Label Label2 
  237.       Caption         =   "Subject"
  238.       Height          =   285
  239.       Left            =   180
  240.       TabIndex        =   1
  241.       Top             =   1440
  242.       Width           =   1215
  243.    End
  244.    Begin VB.Label Label1 
  245.       Caption         =   "Title"
  246.       Height          =   285
  247.       Index           =   0
  248.       Left            =   180
  249.       TabIndex        =   0
  250.       Top             =   1020
  251.       Width           =   1215
  252.    End
  253. Attribute VB_Name = "form3"
  254. Attribute VB_Creatable = False
  255. Attribute VB_Exposed = False
  256. Option Explicit
  257. Private Sub cmdExit_Click()
  258. Unload Me
  259. Set form3 = Nothing
  260. End Sub
  261. Private Sub Data1_Reposition()
  262. If Data1.Recordset.BOF = True Then
  263.     chkbof.Value = vbChecked
  264.     chkbof.Value = vbUnchecked
  265. End If
  266. If Data1.Recordset.EOF = True Then
  267.     chkeof.Value = vbChecked
  268.     chkeof.Value = vbUnchecked
  269. End If
  270. End Sub
  271. Private Sub Form_Load()
  272.     Dim filepath As String
  273.     filepath = "\source\chp27\"
  274.     Data1.DatabaseName = filepath & "biblio.mdb"
  275.     Data1.RecordSource = "select * From titles order by pubid ,[year published]"
  276.     Data1.Refresh
  277.     Data1.Align = 2
  278. End Sub
  279.