Results 1 to 3 of 3
  1. #1
    LonghronJ is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Jul 2015
    Posts
    150

    Format concatenated field with numbers

    Hello,



    I have a text box that I'd like to show two fields concatenated together. I basically want the number to be shown as Standard without decimals. For an example, "Main Floor: 3,425 SF". The expression I currently have is
    Code:
     "Main Floor: " & Format([Field1],"0,000") & " SF")
    . I noticed that when the actual field is over 1000, the field displays exactly what I wanted. However, when the field is less than 1000, it displays funny. For an example, "Main Floor: 0,336 SF". I don't want the comma before 336. I can break the text box to two separate boxes to accomplish what I needed, but for the benefit of learning, How do I achieve displaying two concatenated fields with the format I want?

  2. #2
    jwhite is offline Competent Performer
    Windows 10 Access 2013 32bit
    Join Date
    Dec 2012
    Location
    North Carolina
    Posts
    349
    I think you want # instead of 0 within the quotes: format([Field1],"#,###") & " SF"

  3. #3
    LonghronJ is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Jul 2015
    Posts
    150
    That seems to work perfectly. Thank You.

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

Similar Threads

  1. Format Concatenated String
    By JimO in forum Access
    Replies: 3
    Last Post: 05-17-2016, 04:32 PM
  2. Format numbers for a calculated field in a query?
    By Access_Novice in forum Queries
    Replies: 2
    Last Post: 10-25-2014, 03:56 PM
  3. Replies: 3
    Last Post: 09-02-2013, 12:58 PM
  4. Formatting a concatenated field
    By kris335 in forum Access
    Replies: 14
    Last Post: 09-21-2011, 09:56 AM
  5. Formatting a Concatenated Field
    By CoachBarker in forum Queries
    Replies: 2
    Last Post: 09-23-2010, 09:12 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