Results 1 to 5 of 5
  1. #1
    fishhead is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2015
    Posts
    167

    currency formatting

    I have a form with a txt field with the control property set as follows:



    =([customer] & " " & [amt] & " " & [curr] & " " & [date])

    This is returning a result as follows:

    ABC Copmany 307.0323 CDN 7/15/16

    Can someone suggest how i would format this to return a result as ......$307.03...... instead of 307.0323?

    I set the underlying query amt format to currency but this doesn't make any difference. I'm at a loss now?

    thanks in advance.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,820
    Wrap [curr] in Format() function.

    Format([curr], "Currency")

    Why do this concatenation on form?
    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.

  3. #3
    fishhead is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2015
    Posts
    167
    is this what you mean?
    =([customer] & " " & [amt] & " " & Format([curr],"Currency") & " " & [date])

    i don't understand what the "Currency" is doing ? and the above isn't returning the required result?

    re concatenation i'm not sure how else to do this

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,820
    Sorry, format [amt] field.

    Why do you need to display concatenation on form?
    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.

  5. #5
    fishhead is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2015
    Posts
    167
    thanks, for no other reason than it looks better on the form (all in 1 line like this)

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

Similar Threads

  1. Decimals, formatting maybe currency.
    By Perfac in forum Programming
    Replies: 3
    Last Post: 01-27-2018, 09:24 AM
  2. formatting currency
    By osas in forum Programming
    Replies: 1
    Last Post: 10-27-2017, 08:32 AM
  3. Currency formatting without the USD symbol
    By Symlink in forum Access
    Replies: 1
    Last Post: 07-13-2013, 07:40 PM
  4. formatting a field to be currency in VBA
    By Lupson2011 in forum Forms
    Replies: 8
    Last Post: 06-25-2012, 08:02 AM
  5. HELP! formatting currency
    By jgelpi16 in forum Reports
    Replies: 1
    Last Post: 07-06-2010, 09:04 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