home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form frmImpTbls
- BorderStyle = 3 'Fixed Double
- Caption = "Import Tables"
- ClientHeight = 1560
- ClientLeft = 2280
- ClientTop = 3165
- ClientWidth = 6480
- Height = 1965
- HelpContextID = 2016130
- Icon = "IMPTBLS.frx":0000
- Left = 2220
- LinkTopic = "Form2"
- LockControls = -1 'True
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 1560
- ScaleWidth = 6480
- Top = 2820
- Width = 6600
- Begin VB.CommandButton cmdClose
- Cancel = -1 'True
- Caption = "Close"
- Height = 375
- Left = 4920
- TabIndex = 2
- Top = 1080
- Width = 1455
- End
- Begin VB.CommandButton cmdImport
- Caption = "Import"
- Default = -1 'True
- Enabled = 0 'False
- Height = 375
- Left = 4920
- TabIndex = 1
- Top = 480
- Width = 1455
- End
- Begin VB.ListBox lstTables
- Height = 1005
- Left = 120
- TabIndex = 0
- Top = 480
- Width = 4695
- End
- Begin VB.Label Label1
- AutoSize = -1 'True
- Caption = " Tables in "
- Height = 195
- Left = 120
- TabIndex = 3
- Top = 120
- Width = 735
- End
- Attribute VB_Name = "frmImpTbls"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub cmdClose_Click()
- Unload Me
- End Sub
- Private Sub cmdImport_Click()
- Import (lstTables.Text)
- End Sub
- Private Sub lstTables_Click()
- cmdImport.Enabled = True
- End Sub
- Private Sub lstTables_DblClick()
- Call cmdImport_Click
- End Sub
- Private Sub Form_Load()
- Dim tdf As TableDef
- Dim i As Integer
- CenterMe Me, gnMDIFORM
- lstTables.Clear
- For Each tdf In gImpDB.TableDefs
- If (tdf.Attributes And dbSystemObject) = 0 Then
- lstTables.AddItem tdf.Name
- End If
- Next
- End Sub
-