Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Remove randomly placed empty spaces

Posted on 2014-03-12
1
Medium Priority
?
115 Views
Last Modified: 2014-03-12
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
Comment
Question by:K_Deutsch
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 2000 total points
ID: 39923322
>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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question