Results 1 to 4 of 4
  1. #1
    New Lounger
    Join Date
    Mar 2014
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    How to remove comma on Access report

    Please help..

    I have a report in access that has a field called Name. This field is from a query. It's concatenated of the lastname and firstname fields. [ lastname ] &"' "&[firstname] some rows have no name so it printed a comma on my report. How can I remove them?

    I appreciate your help.

    Report name

    Smith, Kathy
    Jones, linda
    ,
    Cole, Jim

  2. Subscribe to our Windows Secrets Newsletter - It's Free!

    Get our unique weekly Newsletter with tips and techniques, how to's and critical updates on Windows 7, Windows 8, Windows XP, Firefox, Internet Explorer, Google, etc. Join our 480,000 subscribers!

    Excel 2013: The Missing Manual

    + Get this BONUS — free!

    Get the most of Excel! Learn about new features, basics of creating a new spreadsheet and using the infamous Ribbon in the first chapter of Excel 2013: The Missing Manual - Subscribe and download Chapter 1 for free!

  3. #2
    Super Moderator RetiredGeek's Avatar
    Join Date
    Mar 2004
    Location
    Manning, South Carolina
    Posts
    6,058
    Thanks
    196
    Thanked 765 Times in 699 Posts
    Kim,

    Welcome to the Lounge as a new poster.

    Change your query field to this FullName: IIf([LN]<>"",[LN] & ", " & [FN],[FN])
    NOComma.JPG
    Of course adjusting table field names as appropriate.
    HTH
    May the Forces of good computing be with you!

    RG

    VBA Rules!

    My Systems: Desktop Specs
    Laptop Specs


  4. The Following User Says Thank You to RetiredGeek For This Useful Post:

    KimPham (2014-03-19)

  5. #3
    New Lounger
    Join Date
    Mar 2014
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Thank you very much RetiredGeek!! you saved my day.. It works great! I appreciate your help.. May you have a wonderful day!
    Last edited by KimPham; 2014-03-19 at 15:37.

  6. #4
    Platinum Lounger
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    4,534
    Thanks
    0
    Thanked 23 Times in 23 Posts
    try using + instead of a &

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •