Solved

left function and append

Posted on 2009-05-18
3
193 Views
Last Modified: 2013-11-29
I have changed the value from 6 - 7,

Former W71234 has become W712340 instead of W071234

What query would put the 0 in front of the W instaed of at the end?left function and append
0
Comment
Question by:Brogrim
  • 2
3 Comments
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 24411903
update tableX
set fld1=Left([fld1],1) & "0" & mid([fld1],2)
0
 
LVL 57

Accepted Solution

by:
Raja Jegan R earned 500 total points
ID: 24411904
Left function worked correctly by providing W712340 as the output.

<< What query would put the 0 in front of the W instaed of at the end?left function and append  >>

Try this one out:

Left(<FieldName>, 1) & "0" & Mid(<FieldName>, 2, 6)
0
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 24411998
Brogrim,

Looks like you did not see my post....
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
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…

730 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