Dear Garry:
What John says here is certainly a way to remove space(s) from your text.
However, in your examples, you removed the first space and left the second.
That is not what this one does. Anyway, that's why I did not pass on this
method to you. So, you can see for yourself which is what you want.
Also, what John couldn't have known is that you replied to me by email that
this had solved your problem. May I gently suggest that if you also reply
within the newsgroup, then others will see that your problem is solved and
not spend time, as John has so graciously done here, on a problem that is
closed?
Tom Ellison
John Nurick said:
If you're using a recent version of Access you can use the VBA Replace()
function in a query. Passing 1 as the fifth argument ensures that it
only replaces the first space, e.g.
Replace([MyField], " ", "", 1, 1)
Hi all
How can I remove a blank space from a field.
e.g.
A 123 ABC or 1 AB 123 etc, so as to get
A123 ABC and 1AB 123 whilst retaining the second blank space.
Thanks to anyone in advance, Garry