?
Solved

Update a field with 3 characters from another field

Posted on 2016-11-21
3
Medium Priority
?
47 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
[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
3 Comments
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 2000 total points
ID: 41895818
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 34

Expert Comment

by:Norie
ID: 41895821
Gordon

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

Author Closing Comment

by:GiaHughes
ID: 41895824
Thanks for the speedy response
0

Featured Post

Industry Leaders: 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

AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
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 …
Suggested Courses

762 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