Results 1 to 4 of 4
  1. #1
    MLangendorf is offline Advanced Beginner
    Windows 7 64bit Access 2016
    Join Date
    Jun 2016
    Posts
    50

    Nz function is eiliminating my % formatting in calculated field.

    How can I maintain the 'percent' formatting of calculated field of query when using the Nz function?


    Obviously it is written to return a '0' if either of the fields used in the calculation is zero but it removes the percent formatting on field for all of the calculations that are 'normal'.
    Is there a way to fix this?

    Thanks Everyone!

    % Wt Change: Nz((Round((([Tbl_ClinicalFUData]![Weight])/([Tbl_ClinicalData]![Weight])-1),2)),'0')

  2. #2
    Bulzie is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Nov 2015
    Posts
    1,511
    Format (Nz((Round((([Tbl_ClinicalFUData]![Weight])/([Tbl_ClinicalData]![Weight])-1),2)),'0'), "Percent")

    There is also a FormatPercent function you can look up that might do what you need.

  3. #3
    MLangendorf is offline Advanced Beginner
    Windows 7 64bit Access 2016
    Join Date
    Jun 2016
    Posts
    50
    Thx Bulzie,
    This worked nicely!
    I appreciate your help.

  4. #4
    Bulzie is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Nov 2015
    Posts
    1,511
    Glad I could help!!

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

Similar Threads

  1. Formatting a calculated field
    By Bradex in forum Access
    Replies: 4
    Last Post: 03-18-2016, 05:50 AM
  2. Replies: 5
    Last Post: 10-03-2014, 11:19 AM
  3. Calculated Field Formatting
    By RJC in forum Access
    Replies: 8
    Last Post: 08-17-2013, 07:56 AM
  4. Replies: 3
    Last Post: 11-20-2012, 11:14 PM
  5. Formatting a Calculated Field
    By e_lady333 in forum Queries
    Replies: 0
    Last Post: 03-17-2010, 06:11 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