Error using Trim

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rafnavsun
    New Member
    • Sep 2007
    • 5

    Error using Trim

    Hi

    I am using trim in Access 2007 and it is returning Error
    Code:
    =Trim([SHIP TO CITY] & ", " & [SHIP TO STATE] & "  " & [SHIP TO ZIP])
    This works in 2003 but not in Access 2007.

    Do you why
  • ADezii
    Recognized Expert Expert
    • Apr 2006
    • 8834

    #2
    Try a variation of the above, and see if it works:
    Code:
    =LTrim([SHIP TO CITY]) & ", " & [SHIP TO STATE] & " " & RTrim([SHIP TO ZIP])

    Comment

    • rafnavsun
      New Member
      • Sep 2007
      • 5

      #3
      Thanks ADezii,

      It worked.

      Comment

      • NeoPa
        Recognized Expert Moderator MVP
        • Oct 2006
        • 32656

        #4
        I'm pleased you got an answer, but next time please save us all some trouble and post the error message when reporting a problem. It's a very rare case that a question makes sense reporting an error without the message. This is not one of those.

        Comment

        Working...