home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 Special / chip-cd_2001_spec_05.zip / spec_05 / apps / crystal / disk18 / Xvb375._ / Xvb375.
Text File  |  1999-08-23  |  22KB  |  651 lines

  1. VERSION 5.00
  2. Object = "{BDC217C8-ED16-11CD-956C-0000C04E4C0A}#1.1#0"; "tabctl32.ocx"
  3. Begin VB.Form frmOptions 
  4.    BorderStyle     =   3  'Fixed Dialog
  5.    Caption         =   "Options"
  6.    ClientHeight    =   4992
  7.    ClientLeft      =   2136
  8.    ClientTop       =   1668
  9.    ClientWidth     =   6960
  10.    KeyPreview      =   -1  'True
  11.    LinkTopic       =   "Form1"
  12.    MaxButton       =   0   'False
  13.    MinButton       =   0   'False
  14.    ScaleHeight     =   4992
  15.    ScaleWidth      =   6960
  16.    ShowInTaskbar   =   0   'False
  17.    Tag             =   "Options"
  18.    Begin VB.CommandButton cmdShowSource 
  19.       Caption         =   "&Show Source"
  20.       Height          =   375
  21.       Left            =   120
  22.       TabIndex        =   43
  23.       Top             =   4455
  24.       Width           =   1320
  25.    End
  26.    Begin TabDlg.SSTab sstOptions 
  27.       Height          =   4188
  28.       Left            =   480
  29.       TabIndex        =   0
  30.       Top             =   120
  31.       Width           =   5880
  32.       _ExtentX        =   10372
  33.       _ExtentY        =   7387
  34.       _Version        =   327680
  35.       Tabs            =   4
  36.       Tab             =   1
  37.       TabsPerRow      =   4
  38.       TabHeight       =   520
  39.       TabCaption(0)   =   "&Special"
  40.       TabPicture(0)   =   "Options.frx":0000
  41.       Tab(0).ControlCount=   1
  42.       Tab(0).ControlEnabled=   0   'False
  43.       Tab(0).Control(0)=   "chkSpecial(0)"
  44.       Tab(0).Control(0).Enabled=   -1  'True
  45.       TabCaption(1)   =   "&Output"
  46.       TabPicture(1)   =   "Options.frx":001C
  47.       Tab(1).ControlCount=   1
  48.       Tab(1).ControlEnabled=   -1  'True
  49.       Tab(1).Control(0)=   "fraOutput"
  50.       Tab(1).Control(0).Enabled=   0   'False
  51.       TabCaption(2)   =   "&Window"
  52.       TabPicture(2)   =   "Options.frx":0038
  53.       Tab(2).ControlCount=   14
  54.       Tab(2).ControlEnabled=   0   'False
  55.       Tab(2).Control(0)=   "txtWindowTitle"
  56.       Tab(2).Control(0).Enabled=   -1  'True
  57.       Tab(2).Control(1)=   "chkWindowZoom"
  58.       Tab(2).Control(1).Enabled=   -1  'True
  59.       Tab(2).Control(2)=   "chkWindowRefresh"
  60.       Tab(2).Control(2).Enabled=   -1  'True
  61.       Tab(2).Control(3)=   "chkWindowSetup"
  62.       Tab(2).Control(3).Enabled=   -1  'True
  63.       Tab(2).Control(4)=   "chkWindowNavigation"
  64.       Tab(2).Control(4).Enabled=   -1  'True
  65.       Tab(2).Control(5)=   "chkWindowExport"
  66.       Tab(2).Control(5).Enabled=   -1  'True
  67.       Tab(2).Control(6)=   "chkWindowCancel"
  68.       Tab(2).Control(6).Enabled=   -1  'True
  69.       Tab(2).Control(7)=   "chkWindowSearch"
  70.       Tab(2).Control(7).Enabled=   -1  'True
  71.       Tab(2).Control(8)=   "chkWindowProgress"
  72.       Tab(2).Control(8).Enabled=   -1  'True
  73.       Tab(2).Control(9)=   "chkWindowPrint"
  74.       Tab(2).Control(9).Enabled=   -1  'True
  75.       Tab(2).Control(10)=   "chkWindowGroupTree"
  76.       Tab(2).Control(10).Enabled=   -1  'True
  77.       Tab(2).Control(11)=   "chkWindowClose"
  78.       Tab(2).Control(11).Enabled=   -1  'True
  79.       Tab(2).Control(12)=   "chkWindowDrill"
  80.       Tab(2).Control(12).Enabled=   -1  'True
  81.       Tab(2).Control(13)=   "lblWindowTitle"
  82.       Tab(2).Control(13).Enabled=   0   'False
  83.       TabCaption(3)   =   "&Tables"
  84.       TabPicture(3)   =   "Options.frx":0054
  85.       Tab(3).ControlCount=   21
  86.       Tab(3).ControlEnabled=   0   'False
  87.       Tab(3).Control(0)=   "txtTablesPassword"
  88.       Tab(3).Control(0).Enabled=   -1  'True
  89.       Tab(3).Control(1)=   "txtTablesUser"
  90.       Tab(3).Control(1).Enabled=   -1  'True
  91.       Tab(3).Control(2)=   "txtTablesDatabase"
  92.       Tab(3).Control(2).Enabled=   -1  'True
  93.       Tab(3).Control(3)=   "txtTablesServer"
  94.       Tab(3).Control(3).Enabled=   -1  'True
  95.       Tab(3).Control(4)=   "txtTablesDLL"
  96.       Tab(3).Control(4).Enabled=   -1  'True
  97.       Tab(3).Control(5)=   "txtTablesType"
  98.       Tab(3).Control(5).Enabled=   -1  'True
  99.       Tab(3).Control(6)=   "txtTablesLocation"
  100.       Tab(3).Control(6).Enabled=   -1  'True
  101.       Tab(3).Control(7)=   "txtTablesDesc"
  102.       Tab(3).Control(7).Enabled=   -1  'True
  103.       Tab(3).Control(8)=   "txtTablesName"
  104.       Tab(3).Control(8).Enabled=   -1  'True
  105.       Tab(3).Control(9)=   "cmdTablesLogOn"
  106.       Tab(3).Control(9).Enabled=   -1  'True
  107.       Tab(3).Control(10)=   "cmdTablesTest"
  108.       Tab(3).Control(10).Enabled=   -1  'True
  109.       Tab(3).Control(11)=   "lstTables"
  110.       Tab(3).Control(11).Enabled=   -1  'True
  111.       Tab(3).Control(12)=   "lblTablesPassword"
  112.       Tab(3).Control(12).Enabled=   0   'False
  113.       Tab(3).Control(13)=   "lblTablesUser"
  114.       Tab(3).Control(13).Enabled=   0   'False
  115.       Tab(3).Control(14)=   "lblTablesDatabase"
  116.       Tab(3).Control(14).Enabled=   0   'False
  117.       Tab(3).Control(15)=   "lblTablesServer"
  118.       Tab(3).Control(15).Enabled=   0   'False
  119.       Tab(3).Control(16)=   "lblTablesDLL"
  120.       Tab(3).Control(16).Enabled=   0   'False
  121.       Tab(3).Control(17)=   "lblTablesType"
  122.       Tab(3).Control(17).Enabled=   0   'False
  123.       Tab(3).Control(18)=   "lblTablesLocation"
  124.       Tab(3).Control(18).Enabled=   0   'False
  125.       Tab(3).Control(19)=   "lblTablesDesc"
  126.       Tab(3).Control(19).Enabled=   0   'False
  127.       Tab(3).Control(20)=   "lblTablesName"
  128.       Tab(3).Control(20).Enabled=   0   'False
  129.       Begin VB.CheckBox chkSpecial 
  130.          Caption         =   "Special unique report option #0"
  131.          Height          =   405
  132.          Index           =   0
  133.          Left            =   -74805
  134.          TabIndex        =   1
  135.          Top             =   720
  136.          Width           =   5460
  137.       End
  138.       Begin VB.TextBox txtTablesPassword 
  139.          Height          =   300
  140.          Left            =   -71310
  141.          TabIndex        =   41
  142.          Top             =   3705
  143.          Width           =   2010
  144.       End
  145.       Begin VB.TextBox txtTablesUser 
  146.          Height          =   300
  147.          Left            =   -71310
  148.          TabIndex        =   39
  149.          Top             =   3292
  150.          Width           =   2010
  151.       End
  152.       Begin VB.TextBox txtTablesDatabase 
  153.          Height          =   300
  154.          Left            =   -71310
  155.          TabIndex        =   37
  156.          Top             =   2886
  157.          Width           =   2010
  158.       End
  159.       Begin VB.TextBox txtTablesServer 
  160.          Height          =   300
  161.          Left            =   -71310
  162.          TabIndex        =   35
  163.          Top             =   2480
  164.          Width           =   2010
  165.       End
  166.       Begin VB.TextBox txtTablesDLL 
  167.          Height          =   300
  168.          Left            =   -71310
  169.          TabIndex        =   33
  170.          Top             =   2074
  171.          Width           =   2010
  172.       End
  173.       Begin VB.TextBox txtTablesType 
  174.          Height          =   300
  175.          Left            =   -71310
  176.          TabIndex        =   31
  177.          Top             =   1668
  178.          Width           =   2010
  179.       End
  180.       Begin VB.TextBox txtTablesLocation 
  181.          Height          =   300
  182.          Left            =   -71295
  183.          TabIndex        =   29
  184.          Top             =   1262
  185.          Width           =   2010
  186.       End
  187.       Begin VB.TextBox txtTablesDesc 
  188.          Height          =   300
  189.          Left            =   -71310
  190.          TabIndex        =   27
  191.          Top             =   856
  192.          Width           =   2010
  193.       End
  194.       Begin VB.TextBox txtTablesName 
  195.          Height          =   300
  196.          Left            =   -71310
  197.          TabIndex        =   25
  198.          Top             =   450
  199.          Width           =   2010
  200.       End
  201.       Begin VB.CommandButton cmdTablesLogOn 
  202.          Caption         =   "Set &Log On Info"
  203.          Height          =   390
  204.          Left            =   -74805
  205.          TabIndex        =   23
  206.          Top             =   2730
  207.          Width           =   1965
  208.       End
  209.       Begin VB.CommandButton cmdTablesTest 
  210.          Caption         =   "Test &Connectivity"
  211.          Height          =   390
  212.          Left            =   -74805
  213.          TabIndex        =   22
  214.          Top             =   2130
  215.          Width           =   1965
  216.       End
  217.       Begin VB.ListBox lstTables 
  218.          Height          =   1392
  219.          Left            =   -74805
  220.          TabIndex        =   21
  221.          Top             =   495
  222.          Width           =   1965
  223.       End
  224.       Begin VB.TextBox txtWindowTitle 
  225.          Height          =   345
  226.          Left            =   -73485
  227.          TabIndex        =   20
  228.          Top             =   3660
  229.          Width           =   4080
  230.       End
  231.       Begin VB.CheckBox chkWindowZoom 
  232.          Caption         =   "&Zoom Controls"
  233.          Height          =   195
  234.          Left            =   -71835
  235.          TabIndex        =   18
  236.          Top             =   3135
  237.          Width           =   2490
  238.       End
  239.       Begin VB.CheckBox chkWindowRefresh 
  240.          Caption         =   "&Refresh Button"
  241.          Height          =   195
  242.          Left            =   -71835
  243.          TabIndex        =   16
  244.          Top             =   2610
  245.          Width           =   2490
  246.       End
  247.       Begin VB.CheckBox chkWindowSetup 
  248.          Caption         =   "Print &Setup Button"
  249.          Height          =   195
  250.          Left            =   -71835
  251.          TabIndex        =   14
  252.          Top             =   2085
  253.          Width           =   2490
  254.       End
  255.       Begin VB.CheckBox chkWindowNavigation 
  256.          Caption         =   "&Navigation Controls"
  257.          Height          =   195
  258.          Left            =   -71835
  259.          TabIndex        =   12
  260.          Top             =   1560
  261.          Width           =   2490
  262.       End
  263.       Begin VB.CheckBox chkWindowExport 
  264.          Caption         =   "&Export Button"
  265.          Height          =   195
  266.          Left            =   -71835
  267.          TabIndex        =   10
  268.          Top             =   1035
  269.          Width           =   2490
  270.       End
  271.       Begin VB.CheckBox chkWindowCancel 
  272.          Caption         =   "&Cancel Button"
  273.          Height          =   195
  274.          Left            =   -71805
  275.          TabIndex        =   8
  276.          Top             =   510
  277.          Width           =   2490
  278.       End
  279.       Begin VB.CheckBox chkWindowSearch 
  280.          Caption         =   "&Search Button"
  281.          Height          =   195
  282.          Left            =   -74655
  283.          TabIndex        =   17
  284.          Top             =   3135
  285.          Width           =   2490
  286.       End
  287.       Begin VB.CheckBox chkWindowProgress 
  288.          Caption         =   "Progress Con&trol"
  289.          Height          =   195
  290.          Left            =   -74655
  291.          TabIndex        =   15
  292.          Top             =   2610
  293.          Width           =   2490
  294.       End
  295.       Begin VB.CheckBox chkWindowPrint 
  296.          Caption         =   "&Print Button"
  297.          Height          =   195
  298.          Left            =   -74655
  299.          TabIndex        =   13
  300.          Top             =   2085
  301.          Width           =   2490
  302.       End
  303.       Begin VB.CheckBox chkWindowGroupTree 
  304.          Caption         =   "&Group Tree"
  305.          Height          =   195
  306.          Left            =   -74655
  307.          TabIndex        =   11
  308.          Top             =   1560
  309.          Width           =   2490
  310.       End
  311.       Begin VB.CheckBox chkWindowClose 
  312.          Caption         =   "C&lose Button"
  313.          Height          =   195
  314.          Left            =   -74655
  315.          TabIndex        =   9
  316.          Top             =   1035
  317.          Width           =   2490
  318.       End
  319.       Begin VB.CheckBox chkWindowDrill 
  320.          Caption         =   "&Drill Down"
  321.          Height          =   195
  322.          Left            =   -74655
  323.          TabIndex        =   7
  324.          Top             =   510
  325.          Width           =   2490
  326.       End
  327.       Begin VB.Frame fraOutput 
  328.          Height          =   3420
  329.          Left            =   255
  330.          TabIndex        =   42
  331.          Top             =   510
  332.          Width           =   5370
  333.          Begin VB.OptionButton optOutputApplication 
  334.             Caption         =   "&Application Window"
  335.             Height          =   375
  336.             Left            =   315
  337.             TabIndex        =   3
  338.             Top             =   933
  339.             Width           =   4800
  340.          End
  341.          Begin VB.OptionButton optOutputExportFileExcel 
  342.             Caption         =   "Export to &File as Excel Worksheet"
  343.             Height          =   375
  344.             Left            =   315
  345.             TabIndex        =   6
  346.             Top             =   2835
  347.             Width           =   4800
  348.          End
  349.          Begin VB.OptionButton optOutputExportEmailWord 
  350.             Caption         =   "Export to &Email as Word Document"
  351.             Height          =   375
  352.             Left            =   315
  353.             TabIndex        =   5
  354.             Top             =   2199
  355.             Width           =   4800
  356.          End
  357.          Begin VB.OptionButton optOutputPrinter 
  358.             Caption         =   "&Printer"
  359.             Height          =   375
  360.             Left            =   315
  361.             TabIndex        =   4
  362.             Top             =   1566
  363.             Width           =   4800
  364.          End
  365.          Begin VB.OptionButton optOutputPreview 
  366.             Caption         =   "Preview &Window"
  367.             Height          =   375
  368.             Left            =   315
  369.             TabIndex        =   2
  370.             Top             =   300
  371.             Value           =   -1  'True
  372.             Width           =   4800
  373.          End
  374.       End
  375.       Begin VB.Label lblTablesPassword 
  376.          Caption         =   "Password:"
  377.          Height          =   270
  378.          Left            =   -72690
  379.          TabIndex        =   40
  380.          Top             =   3765
  381.          Width           =   1305
  382.       End
  383.       Begin VB.Label lblTablesUser 
  384.          Caption         =   "User ID:"
  385.          Height          =   270
  386.          Left            =   -72690
  387.          TabIndex        =   38
  388.          Top             =   3360
  389.          Width           =   1305
  390.       End
  391.       Begin VB.Label lblTablesDatabase 
  392.          Caption         =   "Database Name:"
  393.          Height          =   270
  394.          Left            =   -72690
  395.          TabIndex        =   36
  396.          Top             =   2955
  397.          Width           =   1305
  398.       End
  399.       Begin VB.Label lblTablesServer 
  400.          Caption         =   "Server Name:"
  401.          Height          =   270
  402.          Left            =   -72690
  403.          TabIndex        =   34
  404.          Top             =   2550
  405.          Width           =   1305
  406.       End
  407.       Begin VB.Label lblTablesDLL 
  408.          Caption         =   "DLL Name:"
  409.          Height          =   270
  410.          Left            =   -72690
  411.          TabIndex        =   32
  412.          Top             =   2145
  413.          Width           =   1305
  414.       End
  415.       Begin VB.Label lblTablesType 
  416.          Caption         =   "Type:"
  417.          Height          =   270
  418.          Left            =   -72690
  419.          TabIndex        =   30
  420.          Top             =   1740
  421.          Width           =   1305
  422.       End
  423.       Begin VB.Label lblTablesLocation 
  424.          Caption         =   "Location:"
  425.          Height          =   270
  426.          Left            =   -72690
  427.          TabIndex        =   28
  428.          Top             =   1335
  429.          Width           =   1305
  430.       End
  431.       Begin VB.Label lblTablesDesc 
  432.          Caption         =   "Description:"
  433.          Height          =   270
  434.          Left            =   -72690
  435.          TabIndex        =   26
  436.          Top             =   930
  437.          Width           =   1305
  438.       End
  439.       Begin VB.Label lblTablesName 
  440.          Caption         =   "Name:"
  441.          Height          =   270
  442.          Left            =   -72690
  443.          TabIndex        =   24
  444.          Top             =   525
  445.          Width           =   1305
  446.       End
  447.       Begin VB.Label lblWindowTitle 
  448.          Caption         =   "Window Title:"
  449.          Height          =   180
  450.          Left            =   -74655
  451.          TabIndex        =   19
  452.          Top             =   3705
  453.          Width           =   1350
  454.       End
  455.    End
  456.    Begin VB.CommandButton cmdOK 
  457.       Caption         =   "&OK"
  458.       Default         =   -1  'True
  459.       Height          =   375
  460.       Left            =   3675
  461.       TabIndex        =   44
  462.       Tag             =   "OK"
  463.       Top             =   4455
  464.       Width           =   1095
  465.    End
  466.    Begin VB.CommandButton cmdCancel 
  467.       Cancel          =   -1  'True
  468.       Caption         =   "&Cancel"
  469.       Height          =   375
  470.       Left            =   4920
  471.       TabIndex        =   45
  472.       Tag             =   "Cancel"
  473.       Top             =   4455
  474.       Width           =   1095
  475.    End
  476. End
  477. Attribute VB_Name = "frmOptions"
  478. Attribute VB_GlobalNameSpace = False
  479. Attribute VB_Creatable = False
  480. Attribute VB_PredeclaredId = True
  481. Attribute VB_Exposed = False
  482. Option Explicit
  483.  
  484. Public Enum OptionsResult
  485.   orOk
  486.   orCancel
  487. End Enum
  488.  
  489. Private m_orStatus As OptionsResult
  490.  
  491. Private m_strSource As String
  492. Private m_colSpecialSources As Collection
  493.  
  494. Private m_crwReport As Report
  495. Private m_crwTable As DatabaseTable
  496.  
  497. Public Sub ResetSpecial()
  498.   Set m_colSpecialSources = New Collection
  499.   Me.chkSpecial(0).Visible = False
  500. End Sub
  501.  
  502. Public Function SetSpecial(strCaption As String, Optional strSource As String) As Integer
  503.   SetSpecial = 0
  504.   Me.chkSpecial(SetSpecial).Caption = strCaption
  505.   Me.chkSpecial(SetSpecial).Visible = True
  506.   m_colSpecialSources.Add strSource, CStr(SetSpecial)
  507. End Function
  508.  
  509. Public Function GetSpecial(intSpecial As Integer) As Boolean
  510.   GetSpecial = Me.chkSpecial(0).Value
  511. End Function
  512.  
  513. Public Function Display(crwReport As Report) As OptionsResult
  514.   
  515.   If Not crwReport Is Nothing Then
  516.     Set m_crwReport = crwReport
  517.     Dim intTable As Integer
  518.     Me.lstTables.Clear
  519.     With m_crwReport.Options
  520.         Me.chkWindowGroupTree.Value = Abs(.HasGroupTree)
  521.     End With
  522.     
  523.     For intTable = 1 To m_crwReport.Database.Tables.Count
  524.       Me.lstTables.AddItem m_crwReport.Database.Tables.Item(intTable).Name
  525.     Next intTable
  526.     With m_crwReport.PrintWindowOptions
  527.       Me.chkWindowCancel.Value = Abs(.HasCancelButton)
  528.       Me.chkWindowClose.Value = Abs(.HasCloseButton)
  529.       Me.chkWindowDrill.Value = Abs(.CanDrillDown)
  530.       Me.chkWindowExport.Value = Abs(.HasExportButton)
  531.       Me.chkWindowNavigation.Value = Abs(.HasNavigationControls)
  532.       Me.chkWindowPrint.Value = Abs(.HasPrintButton)
  533.       Me.chkWindowProgress.Value = Abs(.HasProgressControls)
  534.       Me.chkWindowRefresh.Value = Abs(.HasRefreshButton)
  535.       Me.chkWindowSearch.Value = Abs(.HasSearchButton)
  536.       Me.chkWindowSetup.Value = Abs(.HasPrintSetupButton)
  537.       Me.chkWindowZoom.Value = Abs(.HasZoomControl)
  538.     End With
  539.     Me.Show vbModal, frmMain
  540.   Else
  541.     m_orStatus = orCancel
  542.   End If
  543.   If m_orStatus = orOk Then
  544.     With m_crwReport.PrintWindowOptions
  545.       .HasCancelButton = Me.chkWindowCancel.Value
  546.       .HasCloseButton = Me.chkWindowClose.Value
  547.       .CanDrillDown = Me.chkWindowDrill.Value
  548.       .HasExportButton = Me.chkWindowExport.Value
  549.       .HasNavigationControls = Me.chkWindowNavigation.Value
  550.       .HasPrintButton = Me.chkWindowPrint.Value
  551.       .HasProgressControls = Me.chkWindowProgress.Value
  552.       .HasRefreshButton = Me.chkWindowRefresh.Value
  553.       .HasSearchButton = Me.chkWindowSearch.Value
  554.       .HasPrintSetupButton = Me.chkWindowSetup.Value
  555.       .HasZoomControl = Me.chkWindowZoom.Value
  556.     End With
  557.     With m_crwReport.Options
  558.       .HasGroupTree = Me.chkWindowGroupTree.Value
  559.     End With
  560.   End If
  561.   Display = m_orStatus
  562. End Function
  563.  
  564. Private Sub chkSpecial_GotFocus(Index As Integer)
  565.   m_strSource = m_colSpecialSources(CStr(Index))
  566. End Sub
  567.  
  568. Private Sub cmdCancel_Click()
  569.   Me.Hide
  570.   m_orStatus = orCancel
  571. End Sub
  572.  
  573. Private Sub cmdOK_Click()
  574.   Me.Hide
  575.   m_orStatus = orOk
  576. End Sub
  577.  
  578. Private Sub cmdShowSource_Click()
  579.   Select Case sstOptions.Tab
  580.     Case 1
  581.       m_strSource = "Output"
  582.     Case 2
  583.       m_strSource = "Window"
  584.     Case 3
  585.       m_strSource = "Tables"
  586.   End Select
  587.   frmSource.Display (m_strSource)
  588. End Sub
  589.  
  590. Private Sub cmdTablesLogOn_Click()
  591.   If Not m_crwTable Is Nothing Then
  592.     Select Case m_crwTable.Type
  593.     
  594.     Case 1
  595.         m_crwTable.Location = Me.txtTablesLocation.Text
  596.     Case 2
  597.         m_crwTable.SetLogOnInfo Me.txtTablesServer.Text, Me.txtTablesDatabase.Text, Me.txtTablesUser.Text, Me.txtTablesPassword.Text
  598.     End Select
  599.     
  600.   End If
  601. End Sub
  602.  
  603. Private Sub cmdTablesTest_Click()
  604.   If Not m_crwTable Is Nothing Then
  605.     If m_crwTable.TestConnectivity Then
  606.       MsgBox "Connected!"
  607.     Else
  608.       MsgBox "Not connected!"
  609.     End If
  610.   End If
  611. End Sub
  612.  
  613. Private Sub Form_Load()
  614.   Center Me
  615. End Sub
  616.  
  617. Private Sub lstTables_Click()
  618.   Set m_crwTable = m_crwReport.Database.Tables.Item(lstTables.ListIndex + 1)
  619.   With m_crwTable
  620.     Me.txtTablesDLL.Text = .DllName
  621.     Me.txtTablesServer.Text = .LogOnServerName
  622.     Me.txtTablesDatabase.Text = .LogOnDatabaseName
  623.     Me.txtTablesUser.Text = .LogOnUserID
  624.     Me.txtTablesName.Text = .Name
  625.     Me.txtTablesDesc.Text = .DescriptiveName
  626.     Me.txtTablesLocation.Text = .Location
  627.     Me.txtTablesType.Text = .Type
  628.   End With
  629. End Sub
  630.  
  631. Private Sub optOutputApplication_Click()
  632.   sstOptions.TabEnabled(2) = True
  633. End Sub
  634.  
  635. Private Sub optOutputExportEmailWord_Click()
  636.   sstOptions.TabEnabled(2) = False
  637. End Sub
  638.  
  639. Private Sub optOutputExportFileExcel_Click()
  640.   sstOptions.TabEnabled(2) = False
  641. End Sub
  642.  
  643. Private Sub optOutputPreview_Click()
  644.   sstOptions.TabEnabled(2) = True
  645. End Sub
  646.  
  647. Private Sub optOutputPrinter_Click()
  648.   sstOptions.TabEnabled(2) = False
  649. End Sub
  650.  
  651.