Welcome to SPN

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

Sign Up Now!
  1.   Become a Supporter    ::   Make a Contribution   
    Target (Recurring Monthly): $200 :: Achieved: $98

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
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page