Solved

Update a field with 3 characters from another field

Posted on 2016-11-21
3
16 Views
Last Modified: 2016-11-21
Hi
I would like to update a field with the first 3 characters from another field
the field to get the first 3 characters from is [Item Reference]
Not sure how this should read in the update query
Gordon
0
Comment
Question by:GiaHughes
3 Comments
 
LVL 119

Accepted Solution

by:
Rey Obrero earned 500 total points
Comment Utility
using an update query

update TableName
set [fieldname]=Left([Item Reference],3)

Open in new window

or with a criteria

update TableName
set [fieldname]=Left([Item Reference],3)
where [fieldname] is null

Open in new window

0
 
LVL 33

Expert Comment

by:Norie
Comment Utility
Gordon

Are the 3 characters  to replace the current value in the field?
0
 

Author Closing Comment

by:GiaHughes
Comment Utility
Thanks for the speedy response
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
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…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …

763 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now