Results 1 to 6 of 6
  1. #1
    JoeJr is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Sep 2019
    Posts
    62

    Expression If statement inside a report


    hey everyone,

    I am working on a report that has a checkbox that is being pulled from a table. What I am looking to do is replace that checkbox on the report with a textbox. I want it to populate an X if the checkbox is checked with a checkmark "True" in the table. The Report source is the table but on the txt box I cant figure out how to write the expression that represents what I am trying to do. the table field name is "CORRECTEDENTRY" and the txt box on the form is "txtCE"

    Thank you

  2. #2
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    What if it's false? Generally:

    =IIf(FieldName = True, "X", "")
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    JoeJr is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Sep 2019
    Posts
    62
    Quote Originally Posted by pbaldy View Post
    What if it's false? Generally:

    =IIf(FieldName = True, "X", "")
    Thank you for the response. Yes if the field is not checked "False" I dont want it to do anything "input data" into that field.

  4. #4
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Did you try the suggestion?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    JoeJr is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Sep 2019
    Posts
    62
    Quote Originally Posted by pbaldy View Post
    Did you try the suggestion?
    It worked!!

    Thank you

  6. #6
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Happy to help!
    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: 6
    Last Post: 09-26-2016, 10:36 PM
  2. IIF statement in Expression on Form
    By GaryReno in forum Forms
    Replies: 1
    Last Post: 10-16-2015, 07:20 PM
  3. Subquery Inside Insert query statement
    By Sitakanta1989 in forum Access
    Replies: 4
    Last Post: 05-05-2015, 12:05 AM
  4. Replies: 1
    Last Post: 09-05-2012, 07:04 AM
  5. select statement inside values?
    By hung_ko in forum Access
    Replies: 4
    Last Post: 01-01-2011, 10:06 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