Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 119
  • Last Modified:

Remove randomly placed empty spaces

I have a query that produces a list of email addresses. Scattered throughout are erroneous empty spaces, such as myemailaddress @someserver.com. I need a query that takes the original list and spits the list out again but with no empty spaces in the address list. I'm a novice, so please be as detailed as possible. Thank you.
0
K_Deutsch
Asked:
K_Deutsch
1 Solution
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
>erroneous empty spaces
coming from user input?
in which case, the user input should be secured, first, that such entries are not possible any longer.

after that, you may want to remove the spaces, knowing that extended email address like:
[guy hengel] guy.hengel@somedomain.com
would be a perfectly valid email address ...

select replace(your_email_field, ' ', '' ) from yourtable
http://www.techonthenet.com/access/functions/string/replace.php
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now