Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need helping removing a blank space...

Status
Not open for further replies.

meishi85

Technical User
Apr 3, 2004
6
US
I have a custom query column with the following information:

Email:"store" & Right([Company_Name],5) & "@sunny.com"

When I run the query, I see the following:

store 5001@sunny.com
store 5090@sunny.com
store 5022@sunny.com

How can I get rid of the spaced between the "e" from store and the first digit of the store number??
 
Why are you specifying Right( ,5) when you want Right( ,4)? Am I missing something?

In the event that I missed something obvious, consider using the Trim() function.

Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
Use Trim Function, It will remove space.

"store" & TRIM(Right([Company_Name],5)) & "@sunny.com"

Regards,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top