Results 1 to 4 of 4
  1. #1
    gmccray's Avatar
    gmccray is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2015
    Posts
    11

    Trying to display the percent sign at the end of a percentage field

    SELECT OperatorID, Sum(AppsChecked) AS TotAppsChecked, Sum((AppsChecked)-(AppErrors)) AS TotAppsCorrect, Round((TotAppsCorrect)/(TotAppsChecked)*100,2) AS PctCorrect, Sum(AppErrors) AS TotAppErrors, Round((TotAppErrors)/(TotAppsChecked)*100,2) AS PctErrors
    FROM Stats
    WHERE (((Stats.OperatorId)=[Enter OperatorID]) AND ((Stats.Date) Between [Enter Start Date] And [Enter End Date]))
    GROUP BY OperatorId;




    Hi, I am trying to display the percent "%" sign in the column that displays the percentage amount. I've tried everything I can think of, can someone help me? The code is above. Thanks!

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    You can use the FORMAT function. See: http://www.techonthenet.com/access/f...ric/format.php

    Note: If you use this FORMAT function with the percent option, you won't need to multiple your results by 100 first.
    As they show in the example,
    Code:
    Format (0.981, "Percent")
    Result: '98.10%'

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,900
    Is this query the RecordSource for a report? Set Format property of textbox.

    Or

    Set Format property on field in query.

    Or

    Use Format() function - however, this results in a text string, not a number value.

    Or

    Concatenate value with % character - again, results in a text string, not a number value.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  4. #4
    gmccray's Avatar
    gmccray is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2015
    Posts
    11
    Thank you!

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

Similar Threads

  1. Replies: 1
    Last Post: 09-17-2014, 04:40 PM
  2. Replies: 3
    Last Post: 12-10-2013, 12:55 PM
  3. Sign Out and Sign In Student Database
    By jamiers in forum Forms
    Replies: 6
    Last Post: 08-29-2012, 02:03 PM
  4. Replies: 5
    Last Post: 08-15-2011, 07:12 AM
  5. Pound sign in text field
    By eww in forum Programming
    Replies: 3
    Last Post: 09-29-2010, 10:30 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