Results 1 to 3 of 3
  1. #1
    J Bhujanga is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2016
    Location
    Colorado
    Posts
    27

    Trimming Internal Spaces from a String

    As my title implies, I have fields with text strings from which I want to remove ALL spaces, whether they be at the beginning, end or somewhere in between.
    I can imagine various cumbersome approaches to this, involving searching for where the blanks are and chopping the string before and after and putting it back together. This all seems like too much work, especially when it can it can be any number of spaces that are in there.
    However, my searches have yielded no function that will just do it. Is this really the case and I must do it the hard way?

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,458
    the replace function should do what you require

    replace(myString," ","")

  3. #3
    J Bhujanga is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2016
    Location
    Colorado
    Posts
    27
    Yep. It does indeed!
    Thanks.

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

Similar Threads

  1. Replies: 8
    Last Post: 01-30-2014, 01:43 PM
  2. Replies: 5
    Last Post: 10-28-2013, 08:09 AM
  3. calc field producing unwanted spaces amidst the final string
    By kattatonic1 in forum Database Design
    Replies: 7
    Last Post: 07-12-2013, 10:32 AM
  4. Look Up table with string that contain spaces
    By Leonidsg in forum Database Design
    Replies: 1
    Last Post: 04-03-2013, 06:53 PM
  5. Need Help Trimming Field!!
    By emarchant in forum Programming
    Replies: 7
    Last Post: 12-07-2010, 09:48 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