home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form frmtab
- Caption = "Form1"
- ClientHeight = 3105
- ClientLeft = 2445
- ClientTop = 1860
- ClientWidth = 6405
- Height = 3510
- Left = 2385
- LinkTopic = "Form1"
- ScaleHeight = 3105
- ScaleWidth = 6405
- Top = 1515
- Width = 6525
- Begin TabDlg.SSTab SSTab1
- Height = 3075
- Left = 0
- TabIndex = 0
- Top = 0
- Width = 6195
- _Version = 65536
- _ExtentX = 10927
- _ExtentY = 5424
- _StockProps = 15
- Caption = "&Books"
- TabsPerRow = 3
- Tab = 1
- TabOrientation = 0
- Tabs = 2
- Style = 0
- TabMaxWidth = 0
- TabHeight = 529
- TabCaption(0) = "Publishers"
- Tab(0).ControlCount= 9
- Tab(0).ControlEnabled= 0 'False
- Tab(0).Control(0)= "txtState"
- Tab(0).Control(1)= "txtCity"
- Tab(0).Control(2)= "txtAddress"
- Tab(0).Control(3)= "dtaPublishers"
- Tab(0).Control(4)= "txtName"
- Tab(0).Control(5)= "lblState"
- Tab(0).Control(6)= "lblCity"
- Tab(0).Control(7)= "lblAddress"
- Tab(0).Control(8)= "lblPublisher"
- TabCaption(1) = "&Books"
- Tab(1).ControlCount= 5
- Tab(1).ControlEnabled= -1 'True
- Tab(1).Control(0)= "lblTitle"
- Tab(1).Control(1)= "lblDescription"
- Tab(1).Control(2)= "dtaBooks"
- Tab(1).Control(3)= "txtTitle"
- Tab(1).Control(4)= "txtDescription"
- Begin VB.TextBox txtDescription
- DataField = "Description"
- DataSource = "dtaBooks"
- Height = 315
- Left = 2280
- TabIndex = 6
- Top = 1080
- Width = 3675
- End
- Begin VB.TextBox txtTitle
- DataField = "Title"
- DataSource = "dtaBooks"
- Height = 315
- Left = 2280
- TabIndex = 5
- Top = 660
- Width = 3675
- End
- Begin VB.Data dtaBooks
- Caption = "Books"
- Connect = "Access"
- DatabaseName = "\source\chp21\biblio.mdb"
- Exclusive = 0 'False
- Height = 300
- Left = 420
- Options = 0
- ReadOnly = 0 'False
- RecordsetType = 1 'Dynaset
- RecordSource = "Titles"
- Top = 2640
- Width = 5475
- End
- Begin VB.TextBox txtState
- DataField = "State"
- DataSource = "dtaPublishers"
- Height = 375
- Left = -70260
- TabIndex = 4
- Top = 2100
- Width = 1215
- End
- Begin VB.TextBox txtCity
- DataField = "City"
- DataSource = "dtaPublishers"
- Height = 375
- Left = -72660
- TabIndex = 3
- Top = 2100
- Width = 1215
- End
- Begin VB.TextBox txtAddress
- DataField = "Address"
- DataSource = "dtaPublishers"
- Height = 735
- Left = -72660
- TabIndex = 2
- Top = 1260
- Width = 3675
- End
- Begin VB.Data dtaPublishers
- Caption = "Publishers"
- Connect = "Access"
- DatabaseName = "\source\chp21\biblio.mdb"
- Exclusive = 0 'False
- Height = 300
- Left = -74580
- Options = 0
- ReadOnly = 0 'False
- RecordsetType = 1 'Dynaset
- RecordSource = "Publishers"
- Top = 2580
- Width = 5475
- End
- Begin VB.TextBox txtName
- DataField = "Name"
- DataSource = "dtaPublishers"
- Height = 315
- Left = -72660
- TabIndex = 1
- Top = 780
- Width = 3675
- End
- Begin VB.Label lblDescription
- Caption = "Description"
- Height = 300
- Left = 360
- TabIndex = 12
- Top = 1140
- Width = 1215
- End
- Begin VB.Label lblTitle
- Caption = "Title"
- Height = 300
- Left = 360
- TabIndex = 11
- Top = 720
- Width = 1215
- End
- Begin VB.Label lblState
- Caption = "State"
- Height = 300
- Left = -71160
- TabIndex = 10
- Top = 2160
- Width = 735
- End
- Begin VB.Label lblCity
- Caption = "City"
- Height = 300
- Left = -74460
- TabIndex = 9
- Top = 2160
- Width = 1215
- End
- Begin VB.Label lblAddress
- Caption = "Address"
- Height = 300
- Left = -74460
- TabIndex = 8
- Top = 1260
- Width = 1215
- End
- Begin VB.Label lblPublisher
- Caption = "Publisher"
- Height = 295
- Left = -74460
- TabIndex = 7
- Top = 780
- Width = 1215
- End
- End
- Attribute VB_Name = "frmtab"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub Form_Load()
- SSTab1.TabCaption(0) = "Publishers"
- SSTab1.TabCaption(1) = "&Books"
- End Sub
- Private Sub SSTab1_Click(PreviousTab As Integer)
- If PreviousTab = 0 Then
- dtaBooks.RecordSource = "select * from titles where pubid= " & dtaPublishers.Recordset("pubid")
- dtaBooks.Refresh
- End If
- End Sub
-