Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 29th, 2005, 05:47 PM
Registered User
 
Join Date: Nov 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Merge/Append Columns

Need help ASAP.
I have a table with a description field and three columns next to it, one for each corresponding code. I need to merge the three columns into one.
ex.
description C1 C2 C3

outcome:
description C1
                C2
                C3
Anyone?
Thanks a lot!
Cynthia

 
Old November 29th, 2005, 05:58 PM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 564
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Just to clarify, do you want each moved into the same record in the same column or each into the same column but a different record?

Mike

Mike
EchoVue.com
 
Old November 30th, 2005, 04:33 PM
Registered User
 
Join Date: Nov 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Each description might have up to three codes. And I need to show the description on one row,then on the next column the first code, under the same row. For the second code (still for the same description) it will be on the next row but on the code column.

Hope this clarifies my question.

Thanks!
Cynthia

 
Old November 30th, 2005, 04:51 PM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 564
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Personally, I would create a new table with 2 columns - Description and Code.

Next I would set up 3 append queries to append to that table.

The first would be Description & C1 where C1 <> ""
The second would be Description & C2 where C2 <> ""
The last would be Description & C3 where C3 <> ""

Finally, just sort by description to get them in order

HTH - Yell if you have any questions.

Mike

Mike
EchoVue.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Re-using Append Queries steve smart Access 1 May 17th, 2007 11:37 AM
Append Query bright_mulenga Access 1 January 3rd, 2007 01:33 PM
Open For Append As #1 rylemer Beginning VB 6 3 June 5th, 2005 03:27 PM
append query stoneman Access 2 November 12th, 2003 09:17 PM
append to [email protected] VB Databases Basics 3 June 22nd, 2003 04:37 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.