Results 1 to 12 of 12
  1. #1
    cadsvc is offline Novice
    Windows XP Access 2003
    Join Date
    Jan 2010
    Posts
    19

    Conditional Formating In A Report

    My report includes more than 2 fields, but my question is with 2 fields; [Operator] and [Parameter]



    [Operator] data is either an "X" or is blank.
    [Parameter] has text with a White background.

    How can I do the following?
    If [Operator] = "X" I would like [Parameter] background to be Yellow.

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Use Conditional Formatting on the Parameter field. BTW, Parameter is a Reserved word and can cause you problems if it is the name of your field. http://www.allenbrowne.com/AppIssueBadWord.html#P

  3. #3
    cadsvc is offline Novice
    Windows XP Access 2003
    Join Date
    Jan 2010
    Posts
    19
    The field name is actually [Parameter Text]

  4. #4
    cadsvc is offline Novice
    Windows XP Access 2003
    Join Date
    Jan 2010
    Posts
    19
    Can conditional formatting look to another field?

  5. #5
    cadsvc is offline Novice
    Windows XP Access 2003
    Join Date
    Jan 2010
    Posts
    19
    I do not have my office laptop with 2007 on it to see if the following is possible??

    In [Parameter Text] field -> Conditional Formatting. Is there a sequence choice selection for "Select a field" __[Operator]___ "equal to" __ "X" ___... to make [Parameter Text] red.
    Last edited by cadsvc; 08-07-2010 at 08:36 PM. Reason: punctuation

  6. #6
    azal is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    12
    Usually, I do something like this;

    I add the condition field to the report design first of all other fields,
    Stretch it to the report width and do the conditional formatting as usual,but the font color should be similar to the conditional back color to hide the field value.

    After I test the conditional format, I start adding the other fields on top of the condition field; I add the field itself again if needed, of course with different name.

    It works fine all the time and seems professional while in fact a stupid idea behind that.

    Try it; I will attach it if needed.

  7. #7
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Quote Originally Posted by cadsvc View Post
    Can conditional formatting look to another field?
    The simple answer is YES. Have you tried it yet?

  8. #8
    AZstudent is offline Novice
    Windows XP Access 2007
    Join Date
    Nov 2010
    Posts
    3
    I am on the last task on my midterm and I am STUCK. In my report I have, " =Sum([ReEnrollmentFee]) " in my group footer. Well now I have to some how use conditional formatting so that when any of the values are , " equal to 0 " it will appear in red. I'm lost

  9. #9
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    When you select this control in design mode and right click, don't you have a Conditional Formatting... selection?

  10. #10
    thekruser is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Aug 2010
    Posts
    93
    I am in a similar situation. I am incorporating Access in an environment where personnel are still using Excel for everything. Most of the reports I create are done in a way to emulate an Excel spreadsheet. One report in particular is one everyone I work with uses and is used to how it looks.

    What I have:
    Training Report
    -Name
    -Course name
    -Start date
    -End date
    -Status

    What I am trying to do:
    All of the text in a row of data needs to be the same color, but that color is dependent upon the status. For example, if the status is “Completed,” the text should all be red, etc.

    The problem:
    I can’t figure it out. I can set conditional formatting rules for “cell” that contains the status, but I cannot get that formatting to replicate to the adjacent “cells.” I know that I could reformat the report to have the rows separated in sections by status, but my boss wants the report to look EXACTLY how it did before I started “messing with it,” to use his words.

    Though this is a small issue, in my current situation it is a make-it or break-it situation for my employer.

    Thanks in advance for your help!

  11. #11
    thekruser is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Aug 2010
    Posts
    93
    Sorry for the multiple entries. Can't figure out how to delete the second one.

  12. #12
    thekruser is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Aug 2010
    Posts
    93
    Figured this out. Posted the answer on another thread, so I thought I would answer it here as well.

    To solve the issue I just described, open the report in design view and select the field(s) you want to apply the conditional formatting to. Go to 'Conditional Formatting' and select 'Espression is' from the first dropdown and enter

    Code:
    [Field]='Arguement'
    where 'Field' is the field name in the report and 'Arguement' is the condition you want met for the conditional formatting to be applied. Select your formatting and click ok.

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

Similar Threads

  1. Conditional formatting in crosstab report
    By squirrelmaster in forum Reports
    Replies: 0
    Last Post: 06-24-2010, 06:31 AM
  2. report formating/sorting problem
    By bill4364 in forum Reports
    Replies: 1
    Last Post: 02-19-2010, 08:15 PM
  3. Conditional formatting in report
    By RickM in forum Access
    Replies: 1
    Last Post: 09-10-2009, 06:21 PM
  4. Formating a control in MS Access Reports
    By Alex Motilal in forum Access
    Replies: 3
    Last Post: 11-15-2008, 09:09 PM
  5. Querry formating
    By Zoroxeus in forum Queries
    Replies: 0
    Last Post: 03-07-2006, 11:00 PM

Tags for this Thread

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