Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228

    Using Currency in text string.

    Is it possible to display the value as currency in a text string? Its giving the correct value. In a form on a text box it displays correctly also.



    But in a string its just the value and misses off the decimal and currency symbol.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    Convert it in the query...
    cCur([field]

    the textbox currency format will display it.

  3. #3
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    In a text box and in the query it is fine. But in a string in the expression builder its not. Seems odd

  4. #4
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,845
    In a text box and in the query it is fine. But in a string in the expression builder its not. Seems odd
    the text box and query formats are format properties for the underlying value. If concatenating to a string, the underlying value will be used. Instead you need to use the format function to convert the numerical value to a string

    e.g.

    mystring="The order value is " & format([field],"currency")

  5. #5
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    Brilliant. I probably could have found that with a little searching I assumed its format was pulled with the info. Appreciate the answer.

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

Similar Threads

  1. Replies: 2
    Last Post: 04-17-2017, 10:19 AM
  2. Replies: 6
    Last Post: 05-29-2015, 10:21 AM
  3. Currency formatted Text Box Question
    By data808 in forum Access
    Replies: 4
    Last Post: 05-09-2014, 12:50 PM
  4. Replies: 7
    Last Post: 02-29-2012, 06:37 AM
  5. Currency/text display issues
    By Akazuba in forum Access
    Replies: 3
    Last Post: 04-20-2011, 07:51 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