Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

eliminating spaces

Discussion in 'Information Technology' started by Debbie, Jul 28, 2006.

  1. Debbie

    Debbie
    Expand Collapse
    Guest

    I've been trying all the suggestions here for eliminating spaces in a query.
    I've tried replace(My Last Name, " ", "") but I get nothing. So, I tried
    trim(My Last Name, " ", "") with the same result. help??

    Thanks,

    Debbie
     
  2. Loading...

    Similar Threads Forum Date
    Sikhi Gurdwaras Throw Open Their Spaces, Langar For Stranded Commuters In Haryana Sikh Sikhi Sikhism Feb 23, 2016
    Sikh News Want a ride in spaceship? Pay Rs 1.10 cr (Sify News) Breaking News May 30, 2005
    Sikh News Want a ride in spaceship? It's just Rs 11 mn (Press Trust of India) Breaking News May 30, 2005

  3. Steve Schapel

    Steve Schapel
    Expand Collapse
    Guest

    Debbie,

    Is 'My Last Name' the name of a field? If so, this should work...
    Replace([My Last Name]," ","")
    If not, can you please say:
    - What do you mena by "I get nothing"?
    - Where are you putting this expression and how are you using it? (I
    am assuming as part of a calculated field in the query?)

    --
    Steve Schapel, Microsoft Access MVP


    Debbie wrote:
    > I've been trying all the suggestions here for eliminating spaces in a query.
    > I've tried replace(My Last Name, " ", "") but I get nothing. So, I tried
    > trim(My Last Name, " ", "") with the same result. help??
    >
    > Thanks,
    >
    > Debbie
     
  4. strive4peace

    strive4peace
    Expand Collapse
    Guest

    Hi Debbie,

    you must delimit fieldnames with brackets if they contrain
    spaces...

    [My Last Name]

    Warm Regards,
    Crystal
    Microsoft Access MVP 2006

    *
    Have an awesome day ;)

    remote programming and training
    strive4peace2006 at yahoo.com

    *

    Debbie wrote:
    > I've been trying all the suggestions here for eliminating spaces in a query.
    > I've tried replace(My Last Name, " ", "") but I get nothing. So, I tried
    > trim(My Last Name, " ", "") with the same result. help??
    >
    > Thanks,
    >
    > Debbie
     
  5. AFSSkier

    AFSSkier
    Expand Collapse
    Guest

    1st are you using this as a Criteria expression? As your criteria use - Is
    Not Null.

    2nd are you using this as a field expression? Try using an IIF statement, it
    is works similar to a IF statement in Excell. Try - My Last Name: MY LAST
    NAME: IIf([My Last Name] Is Null,"NO NAME",[My Last Name]).

    "Debbie" wrote:

    > I've been trying all the suggestions here for eliminating spaces in a query.
    > I've tried replace(My Last Name, " ", "") but I get nothing. So, I tried
    > trim(My Last Name, " ", "") with the same result. help??
    >
    > Thanks,
    >
    > Debbie
     

Share This Page