A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Add a space between two values



 
 
Thread Tools Display Modes
  #1  
Old March 11th, 2010, 03:57 PM posted to microsoft.public.access.queries
Anthony
external usenet poster
 
Posts: 356
Default Add a space between two values

I have a query and I have to add a space between two values, see my exp below:
Station Name & Item: [DBA_DEVICES]![deviceName] & [DBA_ITEMS]![itemId]
This currently displays it as SS-HVICU04521 and I need it to display as
SS-HVICU 04521 with a space in the middle.

Thanks for everyones help in advance.

  #2  
Old March 11th, 2010, 04:07 PM posted to microsoft.public.access.queries
Jeff Boyce
external usenet poster
 
Posts: 8,621
Default Add a space between two values

Anthony

[Field1] & " " & [Field2]

Regards

Jeff Boyce
Microsoft Access MVP

--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.

Any code or pseudocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer
possible/necessary.

"Anthony" wrote in message
...
I have a query and I have to add a space between two values, see my exp
below:
Station Name & Item: [DBA_DEVICES]![deviceName] & [DBA_ITEMS]![itemId]
This currently displays it as SS-HVICU04521 and I need it to display as
SS-HVICU 04521 with a space in the middle.

Thanks for everyones help in advance.



  #3  
Old March 11th, 2010, 04:10 PM posted to microsoft.public.access.queries
Duane Hookom
external usenet poster
 
Posts: 7,177
Default Add a space between two values

Try:
[DBA_DEVICES]![deviceName] & " " & [DBA_ITEMS]![itemId]

--
Duane Hookom
Microsoft Access MVP


"Anthony" wrote:

I have a query and I have to add a space between two values, see my exp below:
Station Name & Item: [DBA_DEVICES]![deviceName] & [DBA_ITEMS]![itemId]
This currently displays it as SS-HVICU04521 and I need it to display as
SS-HVICU 04521 with a space in the middle.

Thanks for everyones help in advance.

  #4  
Old March 12th, 2010, 12:45 PM posted to microsoft.public.access.queries
Anthony
external usenet poster
 
Posts: 356
Default Add a space between two values

Thanks everyone, this works. I appreciate it.

Anthony

"Jeff Boyce" wrote:

Anthony

[Field1] & " " & [Field2]

Regards

Jeff Boyce
Microsoft Access MVP

--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.

Any code or pseudocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer
possible/necessary.

"Anthony" wrote in message
...
I have a query and I have to add a space between two values, see my exp
below:
Station Name & Item: [DBA_DEVICES]![deviceName] & [DBA_ITEMS]![itemId]
This currently displays it as SS-HVICU04521 and I need it to display as
SS-HVICU 04521 with a space in the middle.

Thanks for everyones help in advance.



.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:17 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.