Solved

Update a field with 3 characters from another field

Posted on 2016-11-21
3
37 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 500 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 33

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

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…
This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

726 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