Results 1 to 4 of 4
  1. #1
    Rujahin is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2013
    Location
    Washington
    Posts
    15

    conditional formatting or control source?

    I have a report with 5 fields. [txtRow],[ txtTotal],[ txtFail],[txtPercent], [txtReplace].


    What I want to happen is for the [txtReplace] field to show the value of [txtTotal] when [txtPercent] is 30 or above. And when [txtPercent] is 29 or under, [txtReplace] should show Zero. The control source for [txtPercent] is =[txtFail]/[txtTotal]. I’ve tried various forms of IIf statements in the control source for [txtReplace] and in the conditional formatting expression box. I just can’t seem to make it work. Any help would be appreciated.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Try

    =IIf( [txtPercent] >= 0.30, [txtTotal], 0)
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Rujahin is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2013
    Location
    Washington
    Posts
    15
    That's it. thanks much. I just didn't have the freakin decimal point in there.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Happy to help. You're not the first one to forget about that.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 5
    Last Post: 09-18-2013, 09:15 PM
  2. Replies: 6
    Last Post: 05-26-2013, 09:10 PM
  3. Replies: 5
    Last Post: 03-14-2012, 08:32 PM
  4. Replies: 5
    Last Post: 10-13-2011, 03:36 PM
  5. Conditional Control Source
    By tylerg11 in forum Programming
    Replies: 4
    Last Post: 09-26-2011, 07:47 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