+ Reply to Thread
Results 1 to 2 of 2

Replace space with Underscore in cell within a table.

  1. #1
    Registered User
    Join Date
    12-13-2010
    Location
    Minneapolis
    MS-Off Ver
    Excel 2003
    Posts
    1

    Replace space with Underscore in cell within a table.

    Good day all

    So I have a table created in access with email address's created. The way I am building these is by using the last 4 characters of the last name and the 1st character of the first name. So for example:

    a person named Bob Johnson would be created as JohnB@etc.com

    My problem is on people that have names with a space. So for example Bob Van Denberg is getting created ad Van B. The space is getting counted as the 4th character.

    How do I replace the space with an underscore or better yet, ignore any spaces in the creation?

    Thanks in advance!

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Replace space with Underscore in cell within a table.

    dj2229,

    Welcome to the forum!
    This is in the Access forum, so I'm assuming you're doing this in Access. You can perform this action using an Update query:
    Please Login or Register  to view this content.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1