Solved

Concatenation Access

Posted on 2014-02-12
2
199 Views
Last Modified: 2014-03-05
Hi,

Im looking to update a field in an access table using concatenate.

My field currently contains "123" i want it to contain "123USABC"

How do i concatenate and replace?

Thanks
0
Comment
Question by:Seamus2626
2 Comments
 
LVL 95

Accepted Solution

by:
Lee W, MVP earned 250 total points
ID: 39853597
If the field is numeric then you'll have to change it to a character based field.
0
 
LVL 120

Assisted Solution

by:Rey Obrero (Capricorn1)
Rey Obrero (Capricorn1) earned 250 total points
ID: 39853681
just like what was suggested by Lee,
change the Data type of the field to Text if it is Number Data Type

you can use an update query to change the values


Update TableX
set [fieldname]=[fieldname] & "USABC"


or adding a where condition

Update TableX
set [fieldname]=[fieldname] & "USABC"
where <condition goes here>
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

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…
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 …
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