Results 1 to 3 of 3
  1. #1
    Akchayan is offline Competent Performer
    Windows 7 64bit Access 2016
    Join Date
    Aug 2022
    Posts
    102

    Combine currency format with round function and text

    Hello all,




    I have this little code in my control content:
    ="-" & " " & Int(([Text36]*[VAT rate])*20+0.5)/20


    I am happy with the output e.g. it says "-0.4", but I need this value in currency format which should look like "-0.4CHF".


    How do I do this exactly?

  2. #2
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,858
    Set the format property to Currency?

    Still not giving decent names to your controls I see?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  3. #3
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,737
    Can you have alpha characters in currency formats for any locale? Maybe you need to apply a custom format (might as well do it at the table level instead of for every control that would be for currency)?

    https://support.microsoft.com/en-us/...0-15d36b7f9c3b
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Round Function
    By chalupabatman in forum Queries
    Replies: 7
    Last Post: 08-18-2016, 07:43 AM
  2. Replies: 1
    Last Post: 01-21-2016, 05:38 PM
  3. Round Function
    By gcgoode in forum Access
    Replies: 2
    Last Post: 08-07-2015, 11:08 AM
  4. Replies: 3
    Last Post: 10-19-2014, 06:33 PM
  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