Results 1 to 2 of 2
  1. #1
    jorr is offline Novice
    Windows 8 Access 2013
    Join Date
    Sep 2015
    Posts
    1

    possible to format currency in iif query result that includes text?

    Hi all,
    Is it possible to format currency in the query expression with the results of an iif statement that includes text?
    I want the retail currency result to include 2 decimal places and the currency symbol:


    $###.##

    My current expression is: Expr1: IIf(IsNull([Product Detail.Retail]),"Call Factory",([Product Detail.Retail]))

    I found the following example:
    FormatCurrency(Expression [, NumDigitsAfterDecimal ] [, IncludeLeadingDigit ] [,UseParensForNegativeNumbers ] [, GroupDigits ] )

    at https://support.office.com/en-us/art...9-4e87a416b3d1

    Is it possible to combine this into my expression? If so how?

    Kind Thanks in advance!!

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Try:

    IIf(IsNull([Product Detail.Retail]), "Call Factory", FormatCurrency([Product Detail.Retail]))
    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.

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

Similar Threads

  1. Replies: 3
    Last Post: 12-21-2012, 02:27 PM
  2. Format two fields in a Union Query as Currency
    By alansidman in forum Queries
    Replies: 1
    Last Post: 12-14-2012, 12:41 PM
  3. Access query result in excel format
    By Tha-G in forum Queries
    Replies: 1
    Last Post: 01-06-2012, 01:41 PM
  4. Custom Currency Format
    By Ichigo in forum Access
    Replies: 3
    Last Post: 04-26-2011, 03:34 AM
  5. Replies: 2
    Last Post: 03-23-2011, 11:43 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