Solved

Remove randomly placed empty spaces

Posted on 2014-03-12
1
111 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 500 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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

734 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