Results 1 to 3 of 3
  1. #1
    schwabe is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jan 2012
    Location
    San Francisco Bay Area
    Posts
    50

    Conditional Formatting

    Hello all,



    I'm trying to set up my report, such that it shows products which are not available in red and the ones available in black.
    I'm trying to use the Conditional Formatting function for this.

    The datastructure below the report is a query called qrySFReport.
    the qry has the fields:
    - txtProductName
    - datDueDate
    - txtProjectName
    - intQuantity
    - logAvailable

    The report itself is grouped with respect to the product name and for each group I am giving Due Date, Project Name and Quantity.

    I'd like to establish two different functions:

    - I want the whole paragraph to be colored in red, if the product is not available. Using the expression based rule [qrySFReport].[logAvailable]=False does not work. How do I do that properly?
    - For Dates in the past, I'd like to have the wohle line colored in grey. I know how to do that for the date field (simply use a Field Value based formatting rule).

    My basic problem is, that I don't know where to find the values...

    Benjamin

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    You are using Conditional Formatting dialog? This should work.

    Expression is: [logAvailable]=False

    If you want entire row to reflect alternate format, must set Conditional Formatting for each textbox. If you want an unbroken background bar across the row, will need a textbox layered behind all the other controls (set those controls as Transparent). Then can apply Conditional Format to this textbox.
    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
    schwabe is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jan 2012
    Location
    San Francisco Bay Area
    Posts
    50
    Hi,

    thanks, that solves the problem. I didn't realize that Access is converting logAvailable to a string, when I don't put the brackets...

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

Similar Threads

  1. Conditional Formatting
    By mm07nkb in forum Forms
    Replies: 1
    Last Post: 09-02-2011, 09:58 AM
  2. Conditional formatting
    By avarusbrightfyre in forum Forms
    Replies: 3
    Last Post: 07-01-2011, 11:18 AM
  3. Conditional Formatting
    By Desstro in forum Programming
    Replies: 3
    Last Post: 12-01-2010, 09:52 PM
  4. Conditional Formatting
    By cevatyildiz in forum Forms
    Replies: 8
    Last Post: 04-30-2010, 12:01 PM
  5. Conditional formatting
    By ylivne in forum Reports
    Replies: 1
    Last Post: 07-12-2009, 06:18 PM

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