Solved

CONCAT and SubStr in access

Posted on 2004-08-25
4
9,860 Views
Last Modified: 2011-08-18
Hi..I urgently need the solution on the following case....please help

1. I would like to make a select statement using substr..but the access cannot process my query...it said the "substr" is not a valid command...

2. I have a field in the table to store the tel of client, some of the reocrd contact a "space" in-between the tel number...what is the fastest way to find out those record and correct them to "without space" in access??
0
Comment
Question by:esther_6694
[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
4 Comments
 
LVL 12

Accepted Solution

by:
fulscher earned 63 total points
ID: 11891080
esther 6694, concerning the 1st question: please post the query as you have it now.

Concerning the second question: first create a normal query:
SELECT (replace(tel, " ", "")) from tablename;
and check whether this gives the results which you need. If so, you can create an update query to fix the fields (make a backup first!!!):

UPDATE table SET tel = Replace([tel]," ","");

Hope this helps
Jan


0
 
LVL 9

Assisted Solution

by:solution46
solution46 earned 62 total points
ID: 11891081
The commands you need are Mid() for SubString and Replace() to get rid of the spaces.

The Access online help should tell you all you need to know about these functions.

s46.
0

Featured Post

Independent Software Vendors: 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

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

690 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