Results 1 to 5 of 5
  1. #1
    Meccer is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jan 2011
    Posts
    17

    Background Color

    Hello, I'm creating a report and I want outstanding records to stand out among the rest, each record is listed one beneath the other and I want an outstanding record's color to be red.



    I've done this on a different report with only the record details not a list, therefore I used this code which works create:
    Code:
    If Me.Issue = True Then
    Me.PageHeaderSection.BackColor = vbRed
    End If
    The syntax should be correct, I just don't know what field to use, (Issue is a check box)

  2. #2
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    Have you considered using the built in Conditional Format function within Access?

    Look here for tutorial

    http://video.google.com/videoplay?do...2297909344198#

    Alan

  3. #3
    Meccer is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jan 2011
    Posts
    17
    Hello Alan,

    Thanks for your response, I've looked into conditioning formatting, but it seems no matter what I do the color does not change.

    I tried
    Expression Is; [Issue]=1 the background must be red

  4. #4
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    Change the conditional format to
    Code:
    [issue]=-1
    Alan

  5. #5
    Meccer is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jan 2011
    Posts
    17
    Thank you Alan,

    Works Perfect!

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

Similar Threads

  1. Background color for fields in a subform
    By eric.opperman1@gmail.com in forum Forms
    Replies: 3
    Last Post: 03-19-2011, 07:46 PM
  2. Run DB in Background
    By jgelpi16 in forum Access
    Replies: 1
    Last Post: 07-27-2010, 01:50 PM
  3. Change Row Background Color Programmatically
    By sales@4bco.com in forum Programming
    Replies: 2
    Last Post: 10-25-2009, 11:17 AM
  4. background color in a form
    By taggart in forum Forms
    Replies: 1
    Last Post: 05-07-2009, 10:37 AM
  5. background
    By marianne in forum Access
    Replies: 23
    Last Post: 05-03-2009, 02:10 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