Results 1 to 3 of 3
  1. #1
    streub is offline Advanced Beginner
    Windows 10 Access 2013 64bit
    Join Date
    Oct 2017
    Posts
    42

    Format expession as percentage

    I have tried several scenarios to obtain a percentage format for the last part of the expression "([ort]-[discounted price])/[ort])"



    PC: IIf(([ort]-[discounted price])/[ort]<0.01,"Best Price",([ort]-[discounted price])/[ort])

    Currently the field displays "Best Price" where appropriate; however the numbers are in a string preceded with a decimal point.

    Where should the formatpercent function be inserted?

  2. #2
    Minty is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,144
    Using the control's display format you can display text instead of a number.
    So if you made the result Null or Zero you can use formatting as per https://msdn.microsoft.com/en-us/vba...ncy-data-types

    And simply make it a percentage otherwise.
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    in the query ,right click on the field ,set format=percent

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

Similar Threads

  1. Field format Percentage
    By Gopans in forum Access
    Replies: 4
    Last Post: 05-16-2017, 01:05 AM
  2. Replies: 4
    Last Post: 03-12-2013, 06:49 PM
  3. Replies: 2
    Last Post: 02-11-2013, 01:26 PM
  4. how to format percentage in access report
    By mdnikki in forum Reports
    Replies: 2
    Last Post: 02-11-2013, 01:20 PM
  5. Problem with percentage format
    By APD in forum Access
    Replies: 2
    Last Post: 08-30-2011, 09:07 AM

Tags for this Thread

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