Results 1 to 4 of 4
  1. #1
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 10 Access 2013 32bit
    Join Date
    Feb 2011
    Posts
    1,919

    I must be going blind

    I don't see the problem with the Select Case.
    Code:
    Private Sub Report_Open(Cancel As Integer)
    '*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
    ' Open main report and adjust display as indicated by which register is in
    ' effect and whether there are any highlighted transactions.
    '*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
    Me.lblRptPeriod.Caption = "The period selected can be observed by examining the Date and OB-Date columns"
    Me.imIcon.Picture = DLookup("[IconFile]", "tblsettings")
    
    
    '*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
    ' Totals are displayed as sum(Debits) for Personal and Business, where the
    ' sum(Credits) are displayed for the creditcard registry.  Further, when
    ' transactions are "Highlighted", their totals are displayed independently
    ' and the totaling section of the report is expanded and separated from the
    ' list of transactions.
    '*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
    '  intBEIndex=: 0 "Personal", 1 "CreditCards" and 2 "Business"
    Select Case intBEIndex
        Case 0, 2
            If Me.tbTotalDeb3HLt = 0 Then        'Any highlighted transactions?
                Me.lnTotal1.Visible = True       'NO
                Me.lblTotal1.Visible = True
                Me.tbTotalDeb1.Visible = True
            Else
                Me.lnTotal3.Visible = True       'Yes, we have highlighted transactions to report
                Me.tbTotalDeb3.Visible = True
                Me.tbTotalDeb3HLt.Visible = True
                Me.tbTotalDeb2.Visible = True
                Me.lblTotal2.Visible = True
                Me.lblTotal2HLt.Visible = True
                Me.tbTotalDeb3HLt.Visible = True
            End
        Case 1          '<<<<<<<<<<<<COMPILER SAYS I HAVE A "Case without Select Case"
            If Me.tbTotalCred3HLt = 0 Then        'Any highlighted transactions?
                Me.lnTotal1.Visible = True        'NO
                Me.lblTotal1.Visible = True
                Me.tbTotalCred1.Visible = True
            Else
                Me.lnTotal3.Visible = True        'Yes, we have highlighted transactions to report
                Me.tbTotalCred3.Visible = True
                Me.tbTotalCred3HLt.Visible = True
                Me.tbTotalCred2.Visible = True
                Me.lblTotal2.Visible = True
                Me.lblTotal2HLt.Visible = True
                Me.tbTotalCred3HLt.Visible = True
            End
    End Select
    
    
    End Sub


  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    End needs to be End If.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Here Bill, I'll do it for you.

    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  4. #4
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 10 Access 2013 32bit
    Join Date
    Feb 2011
    Posts
    1,919
    I mentioned that I was probably going blind, perhaps a better phrase might be old and tired.......... GOOD GRIEF!

Please reply to this thread with any new information or opinions.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums