home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / PVb5.0 / VB / SAMPLES / PGUIDE / BIBLIO / BIBLIO.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1997-01-27  |  32.1 KB  |  994 lines

  1. VERSION 5.00
  2. Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.1#0"; "COMDLG32.OCX"
  3. Begin VB.Form Form1 
  4.    BackColor       =   &H00FFFF80&
  5.    Caption         =   "
  6.    ClientHeight    =   6510
  7.    ClientLeft      =   3000
  8.    ClientTop       =   2955
  9.    ClientWidth     =   9000
  10.    LinkTopic       =   "Form1"
  11.    PaletteMode     =   1  'UseZOrder
  12.    ScaleHeight     =   6510
  13.    ScaleWidth      =   9000
  14.    StartUpPosition =   2  'CenterScreen
  15.    WhatsThisHelp   =   -1  'True
  16.    Begin VB.PictureBox DisplayGroup 
  17.       BackColor       =   &H00C0C0C0&
  18.       Height          =   5295
  19.       Index           =   2
  20.       Left            =   1080
  21.       ScaleHeight     =   5235
  22.       ScaleWidth      =   7995
  23.       TabIndex        =   0
  24.       Top             =   1200
  25.       Width           =   8055
  26.       Begin VB.ListBox lstPubsTitles 
  27.          Height          =   1140
  28.          Left            =   3120
  29.          TabIndex        =   45
  30.          Top             =   2880
  31.          Width           =   4575
  32.       End
  33.       Begin VB.TextBox txtPubs 
  34.          DataField       =   "Comments"
  35.          DataSource      =   "dbCtrl(2)"
  36.          Height          =   975
  37.          Index           =   9
  38.          Left            =   360
  39.          MultiLine       =   -1  'True
  40.          ScrollBars      =   2  'Vertical
  41.          TabIndex        =   10
  42.          Top             =   3480
  43.          Width           =   2415
  44.       End
  45.       Begin VB.TextBox txtPubs 
  46.          DataField       =   "Fax"
  47.          DataSource      =   "dbCtrl(2)"
  48.          Height          =   285
  49.          Index           =   8
  50.          Left            =   1680
  51.          TabIndex        =   9
  52.          Text            =   "Fax"
  53.          Top             =   2880
  54.          Width           =   1095
  55.       End
  56.       Begin VB.TextBox txtPubs 
  57.          DataField       =   "Telephone"
  58.          DataSource      =   "dbCtrl(2)"
  59.          Height          =   285
  60.          Index           =   7
  61.          Left            =   360
  62.          TabIndex        =   8
  63.          Text            =   "Telephone"
  64.          Top             =   2880
  65.          Width           =   1095
  66.       End
  67.       Begin VB.TextBox txtPubs 
  68.          DataField       =   "Zip"
  69.          DataSource      =   "dbCtrl(2)"
  70.          Height          =   285
  71.          Index           =   6
  72.          Left            =   6120
  73.          TabIndex        =   7
  74.          Text            =   "Zip"
  75.          Top             =   2280
  76.          Width           =   1575
  77.       End
  78.       Begin VB.TextBox txtPubs 
  79.          DataField       =   "State"
  80.          DataSource      =   "dbCtrl(2)"
  81.          Height          =   285
  82.          Index           =   5
  83.          Left            =   5040
  84.          TabIndex        =   6
  85.          Text            =   "State"
  86.          Top             =   2280
  87.          Width           =   855
  88.       End
  89.       Begin VB.TextBox txtPubs 
  90.          DataField       =   "City"
  91.          DataSource      =   "dbCtrl(2)"
  92.          Height          =   285
  93.          Index           =   4
  94.          Left            =   360
  95.          TabIndex        =   5
  96.          Text            =   "City"
  97.          Top             =   2280
  98.          Width           =   4455
  99.       End
  100.       Begin VB.TextBox txtPubs 
  101.          DataField       =   "Company Name"
  102.          DataSource      =   "dbCtrl(2)"
  103.          Height          =   285
  104.          Index           =   2
  105.          Left            =   360
  106.          TabIndex        =   3
  107.          Text            =   "Company Name"
  108.          Top             =   1080
  109.          Width           =   7335
  110.       End
  111.       Begin VB.TextBox txtPubs 
  112.          DataField       =   "Name"
  113.          DataSource      =   "dbCtrl(2)"
  114.          Height          =   285
  115.          Index           =   1
  116.          Left            =   2280
  117.          TabIndex        =   2
  118.          Text            =   "Name"
  119.          Top             =   480
  120.          Width           =   5415
  121.       End
  122.       Begin VB.TextBox txtPubs 
  123.          DataField       =   "PubID"
  124.          DataSource      =   "dbCtrl(2)"
  125.          Height          =   285
  126.          Index           =   0
  127.          Left            =   360
  128.          TabIndex        =   1
  129.          Text            =   "Name"
  130.          Top             =   480
  131.          Width           =   1455
  132.       End
  133.       Begin VB.Data dbCtrl 
  134.          BackColor       =   &H00FFFF00&
  135.          Caption         =   "  
  136.          Connect         =   "Access"
  137.          DatabaseName    =   "C:\VB5\BIBLIO.MDB"
  138.          DefaultCursorType=   0  'DefaultCursor
  139.          DefaultType     =   2  'UseODBC
  140.          Exclusive       =   0   'False
  141.          Height          =   375
  142.          Index           =   2
  143.          Left            =   3000
  144.          Options         =   0
  145.          ReadOnly        =   -1  'True
  146.          RecordsetType   =   1  'Dynaset
  147.          RecordSource    =   "Publishers"
  148.          Top             =   4800
  149.          Width           =   2175
  150.       End
  151.       Begin VB.TextBox txtPubs 
  152.          DataField       =   "Address"
  153.          DataSource      =   "dbCtrl(2)"
  154.          Height          =   285
  155.          Index           =   3
  156.          Left            =   360
  157.          TabIndex        =   4
  158.          Text            =   "Address"
  159.          Top             =   1680
  160.          Width           =   7335
  161.       End
  162.       Begin VB.Label lblPubs 
  163.          BackColor       =   &H00C0C0C0&
  164.          Caption         =   "
  165.          ForeColor       =   &H00000000&
  166.          Height          =   255
  167.          Index           =   10
  168.          Left            =   3120
  169.          TabIndex        =   44
  170.          Top             =   2640
  171.          Width           =   1695
  172.       End
  173.       Begin VB.Label lblPubs 
  174.          BackColor       =   &H00C0C0C0&
  175.          Caption         =   "
  176.          ForeColor       =   &H00FF0000&
  177.          Height          =   255
  178.          Index           =   9
  179.          Left            =   360
  180.          TabIndex        =   43
  181.          Top             =   3240
  182.          Width           =   735
  183.       End
  184.       Begin VB.Label lblPubs 
  185.          BackColor       =   &H00C0C0C0&
  186.          Caption         =   "
  187.          ForeColor       =   &H00FF0000&
  188.          Height          =   255
  189.          Index           =   8
  190.          Left            =   1680
  191.          TabIndex        =   42
  192.          Top             =   2640
  193.          Width           =   735
  194.       End
  195.       Begin VB.Label lblPubs 
  196.          BackColor       =   &H00C0C0C0&
  197.          Caption         =   "
  198.          ForeColor       =   &H00FF0000&
  199.          Height          =   255
  200.          Index           =   7
  201.          Left            =   360
  202.          TabIndex        =   41
  203.          Top             =   2640
  204.          Width           =   855
  205.       End
  206.       Begin VB.Label lblPubs 
  207.          BackColor       =   &H00C0C0C0&
  208.          Caption         =   "
  209.          ForeColor       =   &H00FF0000&
  210.          Height          =   255
  211.          Index           =   6
  212.          Left            =   6120
  213.          TabIndex        =   40
  214.          Top             =   2040
  215.          Width           =   975
  216.       End
  217.       Begin VB.Label lblPubs 
  218.          BackColor       =   &H00C0C0C0&
  219.          Caption         =   "
  220.          ForeColor       =   &H00FF0000&
  221.          Height          =   255
  222.          Index           =   5
  223.          Left            =   5040
  224.          TabIndex        =   39
  225.          Top             =   2040
  226.          Width           =   735
  227.       End
  228.       Begin VB.Label lblPubs 
  229.          BackColor       =   &H00C0C0C0&
  230.          Caption         =   "
  231.          ForeColor       =   &H00FF0000&
  232.          Height          =   255
  233.          Index           =   4
  234.          Left            =   360
  235.          TabIndex        =   38
  236.          Top             =   2040
  237.          Width           =   975
  238.       End
  239.       Begin VB.Label lblPubs 
  240.          BackColor       =   &H00C0C0C0&
  241.          Caption         =   "
  242.          ForeColor       =   &H00FF0000&
  243.          Height          =   255
  244.          Index           =   3
  245.          Left            =   360
  246.          TabIndex        =   37
  247.          Top             =   1440
  248.          Width           =   735
  249.       End
  250.       Begin VB.Label lblPubs 
  251.          BackColor       =   &H00C0C0C0&
  252.          Caption         =   "
  253.          ForeColor       =   &H00FF0000&
  254.          Height          =   255
  255.          Index           =   2
  256.          Left            =   360
  257.          TabIndex        =   36
  258.          Top             =   840
  259.          Width           =   1215
  260.       End
  261.       Begin VB.Label lblPubs 
  262.          BackColor       =   &H00C0C0C0&
  263.          Caption         =   "
  264.          ForeColor       =   &H00FF0000&
  265.          Height          =   255
  266.          Index           =   1
  267.          Left            =   2280
  268.          TabIndex        =   35
  269.          Top             =   240
  270.          Width           =   855
  271.       End
  272.       Begin VB.Label lblPubs 
  273.          BackColor       =   &H00C0C0C0&
  274.          Caption         =   "
  275.          ForeColor       =   &H00FF0000&
  276.          Height          =   255
  277.          Index           =   0
  278.          Left            =   360
  279.          TabIndex        =   34
  280.          Top             =   120
  281.          Width           =   1095
  282.       End
  283.    End
  284.    Begin VB.PictureBox DisplayGroup 
  285.       BackColor       =   &H00C0C0C0&
  286.       Height          =   5295
  287.       Index           =   1
  288.       Left            =   480
  289.       ScaleHeight     =   5235
  290.       ScaleWidth      =   7995
  291.       TabIndex        =   11
  292.       Top             =   840
  293.       Width           =   8055
  294.       Begin VB.ListBox lstAuthorTitles 
  295.          Height          =   780
  296.          Left            =   2880
  297.          TabIndex        =   53
  298.          Top             =   1320
  299.          Width           =   4455
  300.       End
  301.       Begin VB.TextBox txtAuthors 
  302.          DataField       =   "Year Born"
  303.          DataSource      =   "dbCtrl(1)"
  304.          Height          =   375
  305.          Index           =   2
  306.          Left            =   360
  307.          TabIndex        =   49
  308.          Text            =   "Year Born"
  309.          Top             =   2040
  310.          Width           =   1815
  311.       End
  312.       Begin VB.TextBox txtAuthors 
  313.          DataField       =   "Au_ID"
  314.          DataSource      =   "dbCtrl(1)"
  315.          Height          =   375
  316.          Index           =   1
  317.          Left            =   360
  318.          TabIndex        =   48
  319.          Text            =   "Au_ID"
  320.          Top             =   1320
  321.          Width           =   1815
  322.       End
  323.       Begin VB.TextBox txtAuthors 
  324.          DataField       =   "Author"
  325.          DataSource      =   "dbCtrl(1)"
  326.          Height          =   375
  327.          Index           =   0
  328.          Left            =   360
  329.          TabIndex        =   12
  330.          Text            =   "Author"
  331.          Top             =   600
  332.          Width           =   6975
  333.       End
  334.       Begin VB.Data dbCtrl 
  335.          BackColor       =   &H00FFFF00&
  336.          Caption         =   "   
  337.          Connect         =   "Access"
  338.          DatabaseName    =   "C:\VB5\BIBLIO.MDB"
  339.          DefaultCursorType=   0  'DefaultCursor
  340.          DefaultType     =   2  'UseODBC
  341.          Exclusive       =   0   'False
  342.          Height          =   375
  343.          Index           =   1
  344.          Left            =   3000
  345.          Options         =   0
  346.          ReadOnly        =   -1  'True
  347.          RecordsetType   =   1  'Dynaset
  348.          RecordSource    =   "Authors"
  349.          Top             =   4800
  350.          Width           =   2175
  351.       End
  352.       Begin VB.Label lblAuthors 
  353.          BackColor       =   &H00C0C0C0&
  354.          Caption         =   "
  355.          ForeColor       =   &H00000000&
  356.          Height          =   255
  357.          Index           =   3
  358.          Left            =   2880
  359.          TabIndex        =   52
  360.          Top             =   1080
  361.          Width           =   1455
  362.       End
  363.       Begin VB.Label lblAuthors 
  364.          BackColor       =   &H00C0C0C0&
  365.          Caption         =   "
  366.          ForeColor       =   &H00FF0000&
  367.          Height          =   255
  368.          Index           =   2
  369.          Left            =   360
  370.          TabIndex        =   51
  371.          Top             =   1800
  372.          Width           =   855
  373.       End
  374.       Begin VB.Label lblAuthors 
  375.          BackColor       =   &H00C0C0C0&
  376.          Caption         =   "
  377.          ForeColor       =   &H00FF0000&
  378.          Height          =   255
  379.          Index           =   1
  380.          Left            =   360
  381.          TabIndex        =   50
  382.          Top             =   1080
  383.          Width           =   735
  384.       End
  385.       Begin VB.Label lblAuthors 
  386.          BackColor       =   &H00C0C0C0&
  387.          Caption         =   "
  388.          ForeColor       =   &H00FF0000&
  389.          Height          =   255
  390.          Index           =   0
  391.          Left            =   360
  392.          TabIndex        =   47
  393.          Top             =   120
  394.          Width           =   735
  395.       End
  396.    End
  397.    Begin VB.Data dcAuthorTitles 
  398.       Caption         =   "Data1"
  399.       Connect         =   "Access"
  400.       DatabaseName    =   "C:\VB5\BIBLIO.MDB"
  401.       DefaultCursorType=   0  'DefaultCursor
  402.       DefaultType     =   2  'UseODBC
  403.       Exclusive       =   0   'False
  404.       Height          =   345
  405.       Left            =   0
  406.       Options         =   0
  407.       ReadOnly        =   0   'False
  408.       RecordsetType   =   2  'Snapshot
  409.       RecordSource    =   ""
  410.       Top             =   5880
  411.       Visible         =   0   'False
  412.       Width           =   1215
  413.    End
  414.    Begin VB.Data dcTitleAuthors 
  415.       Caption         =   "Data1"
  416.       Connect         =   "Access"
  417.       DatabaseName    =   "C:\VB5\BIBLIO.MDB"
  418.       DefaultCursorType=   0  'DefaultCursor
  419.       DefaultType     =   2  'UseODBC
  420.       Exclusive       =   0   'False
  421.       Height          =   345
  422.       Left            =   0
  423.       Options         =   0
  424.       ReadOnly        =   -1  'True
  425.       RecordsetType   =   2  'Snapshot
  426.       RecordSource    =   ""
  427.       Top             =   6120
  428.       Visible         =   0   'False
  429.       Width           =   1215
  430.    End
  431.    Begin VB.Data dcPubsTitles 
  432.       Caption         =   "Data1"
  433.       Connect         =   "Access"
  434.       DatabaseName    =   "C:\VB5\BIBLIO.MDB"
  435.       DefaultCursorType=   0  'DefaultCursor
  436.       DefaultType     =   2  'UseODBC
  437.       Exclusive       =   0   'False
  438.       Height          =   345
  439.       Left            =   0
  440.       Options         =   0
  441.       ReadOnly        =   -1  'True
  442.       RecordsetType   =   2  'Snapshot
  443.       RecordSource    =   ""
  444.       Top             =   6360
  445.       Visible         =   0   'False
  446.       Width           =   1215
  447.    End
  448.    Begin VB.PictureBox Picture1 
  449.       Height          =   495
  450.       Left            =   0
  451.       ScaleHeight     =   435
  452.       ScaleWidth      =   9075
  453.       TabIndex        =   13
  454.       Top             =   0
  455.       Width           =   9135
  456.       Begin VB.CommandButton btnGroup 
  457.          Caption         =   "
  458.          Height          =   495
  459.          Index           =   2
  460.          Left            =   6120
  461.          TabIndex        =   16
  462.          Top             =   0
  463.          Width           =   3015
  464.       End
  465.       Begin VB.CommandButton btnGroup 
  466.          Caption         =   "
  467.          Height          =   495
  468.          Index           =   1
  469.          Left            =   3000
  470.          TabIndex        =   15
  471.          Top             =   0
  472.          Width           =   3135
  473.       End
  474.       Begin VB.CommandButton btnGroup 
  475.          Caption         =   "
  476.          Height          =   495
  477.          Index           =   0
  478.          Left            =   0
  479.          TabIndex        =   14
  480.          Top             =   0
  481.          Width           =   3015
  482.       End
  483.    End
  484.    Begin MSComDlg.CommonDialog CommonDialog1 
  485.       Left            =   8640
  486.       Top             =   720
  487.       _ExtentX        =   847
  488.       _ExtentY        =   847
  489.       _Version        =   327680
  490.       FilterIndex     =   639
  491.       FontSize        =   8.49966e-19
  492.       HelpCommand     =   3
  493.       HelpFile        =   "BIBLIO.HLP"
  494.    End
  495.    Begin VB.PictureBox DisplayGroup 
  496.       BackColor       =   &H00C0C0C0&
  497.       Height          =   5295
  498.       Index           =   0
  499.       Left            =   0
  500.       ScaleHeight     =   5235
  501.       ScaleWidth      =   7995
  502.       TabIndex        =   17
  503.       Top             =   480
  504.       Width           =   8055
  505.       Begin VB.TextBox txtTitles 
  506.          BackColor       =   &H00FFFFFF&
  507.          DataField       =   "PubID"
  508.          DataSource      =   "dbCtrl(0)"
  509.          Height          =   285
  510.          Index           =   6
  511.          Left            =   240
  512.          TabIndex        =   24
  513.          Text            =   "PubID"
  514.          Top             =   3720
  515.          Width           =   1215
  516.       End
  517.       Begin VB.TextBox txtTitles 
  518.          BackColor       =   &H00FFFFFF&
  519.          DataField       =   "Comments"
  520.          DataSource      =   "dbCtrl(0)"
  521.          Height          =   1095
  522.          Index           =   5
  523.          Left            =   4080
  524.          MultiLine       =   -1  'True
  525.          ScrollBars      =   2  'Vertical
  526.          TabIndex        =   23
  527.          Top             =   2280
  528.          Width           =   3375
  529.       End
  530.       Begin VB.TextBox txtTitles 
  531.          BackColor       =   &H00FFFFFF&
  532.          DataField       =   "Subject"
  533.          DataSource      =   "dbCtrl(0)"
  534.          Height          =   1095
  535.          Index           =   4
  536.          Left            =   240
  537.          MultiLine       =   -1  'True
  538.          TabIndex        =   22
  539.          Top             =   2280
  540.          Width           =   3495
  541.       End
  542.       Begin VB.TextBox txtTitles 
  543.          BackColor       =   &H00FFFFFF&
  544.          DataField       =   "Description"
  545.          DataSource      =   "dbCtrl(0)"
  546.          Height          =   285
  547.          Index           =   3
  548.          Left            =   240
  549.          TabIndex        =   21
  550.          Text            =   "Description"
  551.          Top             =   1680
  552.          Width           =   3495
  553.       End
  554.       Begin VB.TextBox txtTitles 
  555.          BackColor       =   &H00FFFFFF&
  556.          DataField       =   "ISBN"
  557.          DataSource      =   "dbCtrl(0)"
  558.          Height          =   285
  559.          Index           =   2
  560.          Left            =   1200
  561.          TabIndex        =   20
  562.          Text            =   "ISBN"
  563.          Top             =   1080
  564.          Width           =   2535
  565.       End
  566.       Begin VB.TextBox txtTitles 
  567.          BackColor       =   &H00FFFFFF&
  568.          DataField       =   "Year Published"
  569.          DataSource      =   "dbCtrl(0)"
  570.          Height          =   285
  571.          Index           =   1
  572.          Left            =   240
  573.          TabIndex        =   19
  574.          Text            =   "Year"
  575.          Top             =   1080
  576.          Width           =   735
  577.       End
  578.       Begin VB.TextBox txtTitles 
  579.          BackColor       =   &H00FFFFFF&
  580.          DataField       =   "Title"
  581.          DataSource      =   "dbCtrl(0)"
  582.          Height          =   285
  583.          Index           =   0
  584.          Left            =   240
  585.          TabIndex        =   18
  586.          Text            =   "Title"
  587.          Top             =   480
  588.          Width           =   7215
  589.       End
  590.       Begin VB.Data dbCtrl 
  591.          BackColor       =   &H00FFFF00&
  592.          Caption         =   "   
  593.          Connect         =   "Access"
  594.          DatabaseName    =   "C:\VB5\BIBLIO.MDB"
  595.          DefaultCursorType=   0  'DefaultCursor
  596.          DefaultType     =   2  'UseODBC
  597.          Exclusive       =   0   'False
  598.          Height          =   375
  599.          Index           =   0
  600.          Left            =   2880
  601.          Options         =   0
  602.          ReadOnly        =   -1  'True
  603.          RecordsetType   =   2  'Snapshot
  604.          RecordSource    =   "Titles"
  605.          Top             =   4800
  606.          Width           =   2175
  607.       End
  608.       Begin VB.ListBox lstTitleAuthors 
  609.          BackColor       =   &H00FFFFFF&
  610.          ForeColor       =   &H00000000&
  611.          Height          =   420
  612.          Left            =   4080
  613.          TabIndex        =   46
  614.          Top             =   1080
  615.          Width           =   3375
  616.       End
  617.       Begin VB.Label lblTitlePub 
  618.          BackColor       =   &H00FFFFFF&
  619.          BorderStyle     =   1  'Fixed Single
  620.          Caption         =   "Label1"
  621.          Height          =   285
  622.          Left            =   1920
  623.          TabIndex        =   54
  624.          Top             =   3720
  625.          Width           =   5535
  626.       End
  627.       Begin VB.Label lblTitles 
  628.          BackColor       =   &H00C0C0C0&
  629.          Caption         =   "
  630.          ForeColor       =   &H00000000&
  631.          Height          =   255
  632.          Index           =   8
  633.          Left            =   4080
  634.          TabIndex        =   33
  635.          Top             =   840
  636.          Width           =   735
  637.       End
  638.       Begin VB.Label lblTitles 
  639.          BackColor       =   &H00C0C0C0&
  640.          Caption         =   "
  641.          ForeColor       =   &H00000000&
  642.          Height          =   255
  643.          Index           =   7
  644.          Left            =   1920
  645.          TabIndex        =   32
  646.          Top             =   3480
  647.          Width           =   735
  648.       End
  649.       Begin VB.Label lblTitles 
  650.          BackColor       =   &H00C0C0C0&
  651.          Caption         =   "
  652.          ForeColor       =   &H00C00000&
  653.          Height          =   255
  654.          Index           =   6
  655.          Left            =   240
  656.          TabIndex        =   31
  657.          Top             =   3480
  658.          Width           =   1000
  659.       End
  660.       Begin VB.Label lblTitles 
  661.          BackColor       =   &H00C0C0C0&
  662.          Caption         =   "
  663.          ForeColor       =   &H00C00000&
  664.          Height          =   255
  665.          Index           =   5
  666.          Left            =   4080
  667.          TabIndex        =   30
  668.          Top             =   2040
  669.          Width           =   855
  670.       End
  671.       Begin VB.Label lblTitles 
  672.          BackColor       =   &H00C0C0C0&
  673.          Caption         =   "
  674.          ForeColor       =   &H00C00000&
  675.          Height          =   255
  676.          Index           =   4
  677.          Left            =   240
  678.          TabIndex        =   29
  679.          Top             =   2040
  680.          Width           =   615
  681.       End
  682.       Begin VB.Label lblTitles 
  683.          BackColor       =   &H00C0C0C0&
  684.          Caption         =   "
  685.          ForeColor       =   &H00C00000&
  686.          Height          =   255
  687.          Index           =   3
  688.          Left            =   240
  689.          TabIndex        =   28
  690.          Top             =   1440
  691.          Width           =   1215
  692.       End
  693.       Begin VB.Label lblTitles 
  694.          BackColor       =   &H00C0C0C0&
  695.          Caption         =   "ISBN"
  696.          ForeColor       =   &H00C00000&
  697.          Height          =   255
  698.          Index           =   2
  699.          Left            =   1200
  700.          TabIndex        =   27
  701.          Top             =   840
  702.          Width           =   615
  703.       End
  704.       Begin VB.Label lblTitles 
  705.          BackColor       =   &H00C0C0C0&
  706.          Caption         =   "
  707.          ForeColor       =   &H00C00000&
  708.          Height          =   255
  709.          Index           =   1
  710.          Left            =   240
  711.          TabIndex        =   26
  712.          Top             =   840
  713.          Width           =   855
  714.       End
  715.       Begin VB.Label lblTitles 
  716.          BackColor       =   &H00C0C0C0&
  717.          Caption         =   "
  718.          ForeColor       =   &H00C00000&
  719.          Height          =   255
  720.          Index           =   0
  721.          Left            =   240
  722.          TabIndex        =   25
  723.          Top             =   120
  724.          Width           =   615
  725.       End
  726.    End
  727.    Begin VB.Menu mnuFile 
  728.       Caption         =   "
  729. (&F)"
  730.       Begin VB.Menu mnuExit 
  731.          Caption         =   "
  732. (&X)"
  733.       End
  734.    End
  735.    Begin VB.Menu mnuSelect 
  736.       Caption         =   "
  737. (&S)"
  738.       Begin VB.Menu mnuTitles 
  739.          Caption         =   "
  740. (&T)"
  741.       End
  742.       Begin VB.Menu mnuAuthors 
  743.          Caption         =   "
  744. (&A)"
  745.       End
  746.       Begin VB.Menu mnuPublishers 
  747.          Caption         =   "
  748. (&P)"
  749.       End
  750.    End
  751.    Begin VB.Menu mnuHelp 
  752.       Caption         =   "
  753. (&H)"
  754.       Begin VB.Menu mnuHelpContents 
  755.          Caption         =   "
  756. (&C)"
  757.       End
  758.       Begin VB.Menu mnuHelpAbout 
  759.          Caption         =   "
  760. (&A)"
  761.       End
  762.    End
  763. Attribute VB_Name = "Form1"
  764. Attribute VB_GlobalNameSpace = False
  765. Attribute VB_Creatable = False
  766. Attribute VB_PredeclaredId = True
  767. Attribute VB_Exposed = False
  768.  WinHelp 
  769.  Windows API 
  770. 'data 
  771.  picture box 
  772. Const Titles% = 0
  773. Const Authors% = 1
  774. Const Publishers% = 2
  775.  Biblio.Mdb 
  776. Dim sDir As String
  777. Sub ListPubsTitles()
  778.     Dim Qry As String
  779.     '
  780.     Qry = "SELECT DISTINCTROW Titles.Title FROM Titles"
  781.     Qry = Qry + " WHERE (Titles.PubID=" + txtPubs(0).Text + ")"
  782.     '
  783.  data 
  784.     dcPubsTitles.RecordSource = Qry
  785.     dcPubsTitles.Refresh
  786.     '
  787.  listbox 
  788.     lstPubsTitles.Clear
  789.     If dcPubsTitles.Recordset.EOF Then
  790.         lstPubsTitles.AddItem "
  791.     End If
  792.     Do While Not dcPubsTitles.Recordset.EOF
  793.         lstPubsTitles.AddItem dcPubsTitles.Recordset(0)
  794.         dcPubsTitles.Recordset.MoveNext
  795.     Loop
  796. End Sub
  797. Sub ListAuthorTitles()
  798.     Dim Qry As String
  799.     '
  800.     Qry = "SELECT Titles.Title FROM Titles"
  801.     Qry = Qry + " INNER JOIN [Title Author] ON"
  802.     Qry = Qry + " Titles.ISBN = [Title Author].ISBN WHERE"
  803.     Qry = Qry + " (([Title Author].Au_ID=" + txtAuthors(1).Text + "))"
  804.     '
  805.  data 
  806.     dcAuthorTitles.RecordSource = Qry
  807.     dcAuthorTitles.Refresh
  808.     '
  809.  listbox 
  810.     lstAuthorTitles.Clear
  811.     Do While Not dcAuthorTitles.Recordset.EOF
  812.         lstAuthorTitles.AddItem dcAuthorTitles.Recordset(0)
  813.         dcAuthorTitles.Recordset.MoveNext
  814.     Loop
  815. End Sub
  816. Sub ListTitleAuthors()
  817.     Dim Qry As String
  818.     '
  819.     Qry = "SELECT Authors.Author FROM Authors"
  820.     Qry = Qry + " INNER JOIN [Title Author] ON"
  821.     Qry = Qry + " Authors.Au_ID = [Title Author].Au_ID WHERE"
  822.     Qry = Qry + " (([Title Author].ISBN='" + txtTitles(2).Text + "'))"
  823.     '
  824.  data 
  825.     dcTitleAuthors.RecordSource = Qry
  826.     dcTitleAuthors.Refresh
  827.     '
  828.  listbox 
  829.     lstTitleAuthors.Clear
  830.     Do While Not dcTitleAuthors.Recordset.EOF
  831.         lstTitleAuthors.AddItem dcTitleAuthors.Recordset(0)
  832.         dcTitleAuthors.Recordset.MoveNext
  833.     Loop
  834.     ' 
  835.  PubID 
  836.     Dim myDB As Database, myRS As Recordset
  837.     ' 
  838.  BIBLIO.MDB
  839.     Set myDB = DBEngine.Workspaces(0).OpenDatabase(sDir & "\biblio.mdb")
  840.     ' 
  841.     Set myRS = myDB.OpenRecordset("Publishers", dbOpenDynaset)
  842.     Dim myCriteria As String
  843.     myCriteria = "PubID = " & txtTitles(6).Text
  844.     myRS.FindFirst myCriteria
  845.     lblTitlePub.Caption = myRS!Name
  846. End Sub
  847.  picture box 
  848. Private Sub btnGroup_Click(Index As Integer)
  849.     DisplayGroup(Index).ZOrder 0
  850. End Sub
  851. Private Sub dbCtrl_Reposition(Index As Integer)
  852.     If Index = Publishers Then
  853.         ListPubsTitles
  854.     ElseIf Index = Authors Then
  855.         ListAuthorTitles
  856.     ElseIf Index = Titles Then
  857.         ListTitleAuthors
  858.     End If
  859. End Sub
  860.  picture box 
  861.  picture box 
  862. Private Sub DisplayGroup_Click(Index As Integer)
  863.     DisplayGroup(Index).ZOrder 0
  864. End Sub
  865. Private Sub Form_Load()
  866.   On Error GoTo FormLoad_Err
  867.   sDir = CurDir
  868.   dcAuthorTitles.DatabaseName = sDir & "\biblio.mdb"
  869.   dcAuthorTitles.Refresh
  870.   dcPubsTitles.DatabaseName = sDir & "\biblio.mdb"
  871.   dcPubsTitles.Refresh
  872.   dcTitleAuthors.DatabaseName = sDir & "\biblio.mdb"
  873.   dcTitleAuthors.Refresh
  874.   dbCtrl(0).DatabaseName = sDir & "\biblio.mdb"
  875.   dbCtrl(0).Refresh
  876.   dbCtrl(1).DatabaseName = sDir & "\biblio.mdb"
  877.   dbCtrl(1).Refresh
  878.   dbCtrl(2).DatabaseName = sDir & "\biblio.mdb"
  879.   dbCtrl(2).Refresh
  880. FormLoad_Exit:
  881. Exit Sub
  882. FormLoad_Err:
  883.     '
  884.  3204
  885.     If Err = 3024 Then
  886.         '
  887.  CommonDialog 
  888.         With CommonDialog1
  889.           .DialogTitle = "
  890.  biblio.mdb 
  891.           .Filter = "(*.mdb)|*.mdb"
  892.           .InitDir = CurDir
  893.           .filename = "biblio.mdb"
  894.           .Flags = cdlOFNReadOnly Or cdlOFNExplorer Or _
  895.            cdlOFNFileMustExist Or cdlOFNPathMustExist
  896.           .ShowOpen
  897.           '
  898.           If .filename <> "" Then
  899.             '
  900.  biblio.mdb
  901.             If Right(UCase(.filename), Len("\biblio.mdb")) = "\BIBLIO.MDB" Then
  902.             dcAuthorTitles.DatabaseName = .filename
  903.             '
  904.  sDir 
  905.  CommonDialog 
  906.  FileName 
  907.             sDir = Mid(.filename, 1, Len(.filename) - Len("\biblio.mdb"))
  908.             End If
  909.             Resume
  910.           Else
  911.             Unload Me
  912.           End If
  913.         End With
  914.     ElseIf Err <> 0 Then ' 
  915.         MsgBox "
  916. : " & Err.Description
  917.         End
  918.     End If
  919.       
  920.     Resume FormLoad_Exit
  921. End Sub
  922. Private Sub lblTitlePub_Click()
  923.     Dim BM As Variant, FindStr As String
  924.     FindStr = "PubID = " + txtTitles(6).Text
  925.     Debug.Print FindStr
  926.     BM = dbCtrl(Publishers).Recordset.Bookmark
  927.     dbCtrl(Publishers).Recordset.FindFirst FindStr
  928.      If dbCtrl(Publishers).Recordset.NoMatch = True Then
  929.         dbCtrl(Publishers).Recordset.Bookmark = BM
  930.     Else
  931.         DisplayGroup_Click (Publishers)
  932.     End If
  933. End Sub
  934. Private Sub lstAuthorTitles_Click()
  935.     Dim BM As Variant, FindStr As String
  936.     FindStr = "Title = """ + lstAuthorTitles.List(lstAuthorTitles.ListIndex) + """"
  937.     BM = dbCtrl(Titles).Recordset.Bookmark
  938.     dbCtrl(Titles).Recordset.FindFirst FindStr
  939.     If dbCtrl(Titles).Recordset.NoMatch = True Then
  940.         dbCtrl(Titles).Recordset.Bookmark = BM
  941.     Else
  942.         DisplayGroup_Click (Titles)
  943.     End If
  944. End Sub
  945. Private Sub lstPubsTitles_Click()
  946.     Dim BM As Variant
  947.     BM = dbCtrl(Titles).Recordset.Bookmark
  948.     dbCtrl(Titles).Recordset.FindFirst _
  949.         "Title = """ + lstPubsTitles.List(lstPubsTitles.ListIndex) + """"
  950.     If dbCtrl(Titles).Recordset.NoMatch = True Then
  951.         dbCtrl(Titles).Recordset.Bookmark = BM
  952.     Else
  953.         DisplayGroup_Click (Titles)
  954.     End If
  955. End Sub
  956. Private Sub lstTitleAuthors_Click()
  957.     Dim BM As Variant
  958.     BM = dbCtrl(Authors).Recordset.Bookmark
  959.     dbCtrl(Authors).Recordset.FindFirst _
  960.         "Author = """ + lstTitleAuthors.List(lstTitleAuthors.ListIndex) + """"
  961.     If dbCtrl(Authors).Recordset.NoMatch = True Then
  962.         dbCtrl(Authors).Recordset.Bookmark = BM
  963.     Else
  964.         DisplayGroup_Click (Authors)
  965.     End If
  966. End Sub
  967.  picture box 
  968. Private Sub mnuAuthors_Click()
  969.     DisplayGroup_Click (Authors)
  970. End Sub
  971.  picture box 
  972. Private Sub mnuPublishers_Click()
  973.     DisplayGroup_Click (Publishers)
  974. End Sub
  975.  picture box 
  976. Private Sub mnuTitles_Click()
  977.     DisplayGroup_Click (Titles)
  978. End Sub
  979. Private Sub mnuExit_Click()
  980.     Unload Me
  981. End Sub
  982. Private Sub mnuHelpAbout_Click()
  983.     frmAbout.Show 1
  984. End Sub
  985. Private Sub mnuHelpContents_Click()
  986.   With CommonDialog1
  987.     .HelpCommand = cdlHelpContents
  988.     .HelpFile = "C:\vb\samples\datactrl\biblio.hlp"
  989.     .ShowHelp
  990.     End With
  991. End Sub
  992. Private Sub txtTitles_Change(Index As Integer)
  993. End Sub
  994.