By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,667 Members | 2,101 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,667 IT Pros & Developers. It's quick & easy.

The Concatenation Query and Space Removal

P: n/a
Is there a way to create a Concatenation Query for 2 columns and at
the same time, remove the spacing between them? The fields that I am
combining are 2 text fields but for some reason there is 15 spaces
between them when I combine.

Jul 19 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Wed, 18 Jul 2007 23:58:10 -0000, mo*******@gmail.com wrote:
Is there a way to create a Concatenation Query for 2 columns and at
the same time, remove the spacing between them? The fields that I am
combining are 2 text fields but for some reason there is 15 spaces
between them when I combine.
Evidently your field contains the extra spaces at the beginning of the
data, as concatenation does not add them.

CombineFields:Trim([Field1]) & Trim([Field2])

If you wish at least one space between the 2 fields, then:
CombineFields:Trim([Field1]) & " " & Trim([Field2])

--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
Jul 19 '07 #2

P: n/a
On Jul 18, 5:11 pm, fredg <fgutk...@example.invalidwrote:
On Wed, 18 Jul 2007 23:58:10 -0000, mochat...@gmail.com wrote:
Is there a way to create a Concatenation Query for 2 columns and at
the same time, remove the spacing between them? The fields that I am
combining are 2 text fields but for some reason there is 15 spaces
between them when I combine.

Evidently your field contains the extra spaces at the beginning of the
data, as concatenation does not add them.

CombineFields:Trim([Field1]) & Trim([Field2])

If you wish at least one space between the 2 fields, then:
CombineFields:Trim([Field1]) & " " & Trim([Field2])

--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
Thanks Fred,

That did the trick!

- Randy

Jul 19 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.