Results 1 to 5 of 5
  1. #1
    cap.zadi is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2011
    Location
    KSA
    Posts
    481

    Hiding Zero Value in report field.

    Hi

    I have some calculated Txt fields at the bottom of the report as the value in Control Source is

    =(Nz([AccessTotalsField1],0)/Nz([TxtTotalField],0))*100

    So its obvious that if there is no numbers in numerator field then it will show results in 00.00. So i want hide the zero values not the field.

    Regards

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,428
    use the format property

    numbers have 4 potential formats - positive, negative, zero and null, each separated with a semi colon. so perhaps something like

    #;#;""

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    hide the txtBox with your value above, but show this result in txtBox2:
    =IIF(txtBox=0,null,txtBox)

  4. #4
    cap.zadi is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2011
    Location
    KSA
    Posts
    481
    Hi

    Thanks and this format suggestion works fantastic.

  5. #5
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,428
    you can use the format property to prompt for entering values - can simplify your form layout e.g.

    #;[RED]#;"";[BLUE]"Enter a Value"

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

Similar Threads

  1. hiding a label in a report
    By angie in forum Access
    Replies: 13
    Last Post: 04-09-2018, 12:15 PM
  2. hiding a button on a report line
    By StuartR in forum Reports
    Replies: 2
    Last Post: 02-23-2018, 01:30 PM
  3. Hiding an Empty Sub-report
    By ophirw in forum Reports
    Replies: 16
    Last Post: 10-04-2011, 09:37 AM
  4. Hiding checkbox on report
    By bluezidane in forum Reports
    Replies: 2
    Last Post: 06-29-2011, 12:46 PM
  5. Hiding rows when blank in a report.
    By ser01 in forum Reports
    Replies: 0
    Last Post: 02-27-2010, 10:29 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