Solved

CONCAT and SubStr in access

Posted on 2004-08-25
4
9,821 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
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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Suggested Solutions

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

770 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