Appending values from one column in a table to another column within the same table

I have a table in MS-Access called Alumni  that has two columns with comments in them, i.e., Comment1 and Comment2. I would like to append the values from the Comment2 column into Comment1 so that I can then get rid of the Comment2 column.

How can I accomplish something like this?  Can you show me both in terms of query design view and SQL? I have attached a screen shot of the query design.

Thanks.
Comments_Update.jpg
geeta_m9Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rey Obrero (Capricorn1)Commented:
Use an Update Query

In SQL view

Update Alumni
Inner Join Alumni_1  On  Alumni.[IDFIELD] = Alumni_1.[IDFIELD]
set  Alumni.Comments1= [Alumni].[Comments1]  & " " & [Alumni-1].[Comments2]


in design view

Field  Comments1
Table Alumni
Update to  [Alumni].[Comments1]  & " " & [Alumni-1].[Comments2]
0
typetoitCommented:
I assume that comment1 and comment2 are memos. I am not sure which version of access you are using but in my experience memos can only hold up to 256. If you are putting both of these comments into one field, you will need to check the length of the fields.
0
geeta_m9Author Commented:
It is not a memo field but Longtext. I am using Access 2013.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

geeta_m9Author Commented:
Hi Rey, I keep obtaining a syntax error when I try to execute the SQL.
0
geeta_m9Author Commented:
I finally did get it to work, but I had to modify the query to as follows:

UPDATE Alumni INNER JOIN Alumni AS Alumni_1 ON Alumni.ID = Alumni_1.ID
SET Alumni.Comments1 = [Alumni].[Comments1] & " " & [Alumni_1].[Comments2];
0
geeta_m9Author Commented:
I've requested that this question be closed as follows:

Accepted answer: 0 points for geeta_m9's comment #a41044170
Assisted answer: 500 points for capricorn1's comment #a41044024

for the following reason:

I listed my comment as the solution because it is the most accurate answer syntactically.
0
geeta_m9Author Commented:
Rey - thank you for your help. I had to make a modification to the syntax in order to get the query to run.
0
PatHartmanCommented:
I don't see any reason for doing the join.  Both columns are in the same record.

UPDATE Alumni
 SET Alumni.Comments1 = [Alumni].[Comments1] & " " & [Alumni].[Comments2];
0
Rey Obrero (Capricorn1)Commented:
@geeta_m9,

I thought that you have two similar tables, and it looks like you only have a single table..
so the sql statement should be

UPDATE Alumni
 SET Comments1 = [Comments1] & " " & [Comments2];
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
geeta_m9Author Commented:
Thank you for your assistance.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.