PC Review


Reply
Thread Tools Rate Thread

How to append information to all data in a field?

 
 
=?Utf-8?B?cG9rZGJ6?=
Guest
Posts: n/a
 
      7th Sep 2006
I have a field "SITE" that I need to append "2201" in the front of what is
already in the field. How can this be done using a query?
 
Reply With Quote
 
 
 
 
Graham R Seach
Guest
Posts: n/a
 
      7th Sep 2006
If you want to do it to the whole table:
UPDATE myTable
SET SITE = "2201" & SITE

....but if you only want to do it to a single record, or a specific set of
records:
UPDATE myTable
SET SITE = "2201" & SITE
WHERE x = y

Regards,
Graham R Seach
Microsoft Access MVP
Sydney, Australia
---------------------------

"pokdbz" <(E-Mail Removed)> wrote in message
news:27A5E7CA-AED3-4D25-ABF9-(E-Mail Removed)...
>I have a field "SITE" that I need to append "2201" in the front of what is
> already in the field. How can this be done using a query?



 
Reply With Quote
 
=?Utf-8?B?cG9rZGJ6?=
Guest
Posts: n/a
 
      7th Sep 2006
Great works perfect

"Graham R Seach" wrote:

> If you want to do it to the whole table:
> UPDATE myTable
> SET SITE = "2201" & SITE
>
> ....but if you only want to do it to a single record, or a specific set of
> records:
> UPDATE myTable
> SET SITE = "2201" & SITE
> WHERE x = y
>
> Regards,
> Graham R Seach
> Microsoft Access MVP
> Sydney, Australia
> ---------------------------
>
> "pokdbz" <(E-Mail Removed)> wrote in message
> news:27A5E7CA-AED3-4D25-ABF9-(E-Mail Removed)...
> >I have a field "SITE" that I need to append "2201" in the front of what is
> > already in the field. How can this be done using a query?

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How to cut/append data from one field to another Douglas J. Steele Microsoft Access Forms 5 13th Dec 2006 05:06 PM
Append data to memo field Abay Microsoft Access Forms 2 22nd Jan 2006 09:40 PM
Append Data & Split Field into Three Fields Barry McConomy Microsoft Access 2 3rd Apr 2005 03:55 PM
How do I import and append data to a table that has a key field ? =?Utf-8?B?Um94YW5uYQ==?= Microsoft Access External Data 1 7th Jan 2005 06:30 PM
Append Data to Field news@blueyonder.co.uk Microsoft Access Database Table Design 5 17th Sep 2004 10:18 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:53 PM.