• Alternating Report background? (AXP 10.2627.2625)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Alternating Report background? (AXP 10.2627.2625)

    • This topic has 3 replies, 3 voices, and was last updated 23 years ago.
    Author
    Topic
    #367564

    How do I print a report such that every EVEN line has a light gray background. The idea is to allow easy reading across a landscape format page. It seems that I will have to code the writing of each line myself (?) but i would of course prefer that Access do the work right out of the box.

    In the above, “even” could be variable, so that a report could be printed with every other pair, or every tuple, of lines grayed.

    At the moment, I’m only looking at gray, not color. I’ve also thought of using precolored paper.

    Viewing 0 reply threads
    Author
    Replies
    • #573463

      I don’t know if AXP have this build in but you could use this in the On Format of the Detail Section:

      Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
         Const vbLightGrey = 12632256
         If Me.CurrentRecord Mod 2 = 0 Then
            Me.Section(acDetail).BackColor = vbLightGrey
         Else
            Me.Section(acDetail).BackColor = vbWhite
         End If
      End Sub
      
      • #573490

        Egg ZACKLY what i wanted!

        Thanks Francois

      • #580143

        What I have found is that the Light grey is in fact too dark on the report, I have used vbYellow instead of Light Grey for a much lighter grey effect.
        HTH
        Pat

    Viewing 0 reply threads
    Reply To: Alternating Report background? (AXP 10.2627.2625)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: