Results 1 to 5 of 5
  1. #1
    techexpressinc's Avatar
    techexpressinc is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Dec 2008
    Location
    Indiana, USA
    Posts
    151

    two spaces to one without VB code ?

    I have this



    fieldwithOnly1space: Replace([fieldwith2spaces],"bb","b")

    with the b being a space.

    And it is not working any suggestions.

    Rus

  2. #2
    techexpressinc's Avatar
    techexpressinc is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Dec 2008
    Location
    Indiana, USA
    Posts
    151

    example

    attached is the db with the example, no extra tables or fields just the basics.
    Rus

  3. #3
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    when I tried, it worked just fine.

    In you query you put Replace([fieldwith2spaces],"bbb","bb"), not
    Replace([fieldwith2spaces],"bb","b")

  4. #4
    techexpressinc's Avatar
    techexpressinc is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Dec 2008
    Location
    Indiana, USA
    Posts
    151

    Here is the output in Excel show 2 spaces

    it does not appear to work for me, see the Excel output.
    Rus
    Last edited by techexpressinc; 10-06-2010 at 02:36 PM. Reason: missing attachment

  5. #5
    techexpressinc's Avatar
    techexpressinc is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Dec 2008
    Location
    Indiana, USA
    Posts
    151

    Solved!

    I had three space I switched it to 2 and the two to one works!
    I get to eat a little crow but get happy customers which pay my bills.

    Thx for the help.
    Russ

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

Similar Threads

  1. Trailing Spaces workaround
    By shexe in forum Queries
    Replies: 23
    Last Post: 09-21-2010, 04:28 AM
  2. Line Spaces in Sql View
    By Matthieu in forum Access
    Replies: 1
    Last Post: 04-06-2010, 10:24 AM
  3. How to make a field accept No spaces
    By jhjarvie in forum Forms
    Replies: 4
    Last Post: 09-26-2009, 04:10 PM
  4. Find Spaces in Field
    By stottle in forum Queries
    Replies: 6
    Last Post: 08-17-2009, 02:02 AM
  5. Deleting Spaces
    By grgerhard in forum Import/Export Data
    Replies: 2
    Last Post: 04-30-2006, 06:42 PM

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