Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2019
    Posts
    1

    Sort and count in header

    Hi



    I have a report that list actions to be completed by a certain date (timeline). Each of these actions has a RAG status (red, amber green and closed). I have managed to show the count of the actions that need to be completed by the date (in the timeline header). I want to show the RAG status next to that count - x are red, y are amber etc - can you help?

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    make a subform (subReport) this has the counts.
    in the report ON PRINT event, you can set colors:

    Code:
    Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
    On Error Resume Next
    
    Select Case AbsRate.Value
    
       Case "Red"
          lbl50.BackColor = vbRed
    
       Case "Blue"
          lbl50.BackColor = vbBlue
        
        Case Else
          lbl50.backcolor = vbWhite
    End Select
    End Sub

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

Similar Threads

  1. Sort by count
    By FJM in forum Access
    Replies: 12
    Last Post: 12-15-2017, 08:05 AM
  2. Sort button in the Form Header
    By trident in forum Reports
    Replies: 2
    Last Post: 04-21-2015, 07:12 AM
  3. Count Records in Header
    By crimedog in forum Forms
    Replies: 1
    Last Post: 03-17-2015, 07:51 PM
  4. Group Header and then a Sort
    By bbulla in forum Reports
    Replies: 1
    Last Post: 09-29-2011, 09:56 AM
  5. Creating Sort Buttons in a Header in a list view
    By marttaaayyy!! in forum Programming
    Replies: 4
    Last Post: 03-29-2010, 11:08 AM

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