PC Review


Reply
Thread Tools Rate Thread

Combining multiple table rows into 1 row

 
 
Jeffrey Marks
Guest
Posts: n/a
 
      5th Jun 2011
I currently have a table that includes a student's ID number and the academic year and a number of topics grouped by ID number and academic year.

Student 1 2006-2007 Topic A Topic B Topic C
Student 1 2009-2010 Topic A Topic B Topic C
Student 2 2005-2006 Topic A Topic B Topic C

The users would like to have this condenses into 1 record, so that they can use SPSS to run some statistical analysis.

Student 1 2006Topic A 2006Topic B 2006Topic C 2009Topic A 2009Topic B 2009Topic C

Student 2.....

Is there an easy way to do this?

Thanks

Jeff
 
Reply With Quote
 
 
 
 
John W. Vinson
Guest
Posts: n/a
 
      5th Jun 2011
On Sun, 5 Jun 2011 13:47:02 -0700 (PDT), Jeffrey Marks <(E-Mail Removed)>
wrote:

>I currently have a table that includes a student's ID number and the academic year and a number of topics grouped by ID number and academic year.
>
>Student 1 2006-2007 Topic A Topic B Topic C
>Student 1 2009-2010 Topic A Topic B Topic C
>Student 2 2005-2006 Topic A Topic B Topic C
>
>The users would like to have this condenses into 1 record, so that they can use SPSS to run some statistical analysis.
>
>Student 1 2006Topic A 2006Topic B 2006Topic C 2009Topic A 2009Topic B 2009Topic C
>
>Student 2.....
>
>Is there an easy way to do this?
>
>Thanks
>
>Jeff


You'll need some VBA code (unless every student has exactly three records, no
more no fewer). See http://www.mvps.org/access/modules/mdl0004.htm for sample
code to concatenate child record fields.
--

John W. Vinson [MVP]
Microsoft's replacements for these newsgroups:
http://social.msdn.microsoft.com/For...-US/accessdev/
http://social.answers.microsoft.com/.../en-US/addbuz/
and see also http://www.utteraccess.com
 
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
Combining multiple rows dagdee Microsoft Excel New Users 1 22nd Oct 2009 12:51 PM
combining multiple rows into one row Randy Allen Microsoft Excel Programming 2 10th May 2009 11:31 PM
Combining Multiple Rows =?Utf-8?B?TWljaGFlbA==?= Microsoft Access Queries 3 7th Feb 2007 10:19 PM
Combining multiple rows to one mbfriesen@gmail.com Microsoft Excel Programming 1 10th Nov 2006 08:33 PM
Combining fields from multiple rows in a single table =?Utf-8?B?R2xlbm4xMjAz?= Microsoft Access Queries 1 17th Apr 2006 11:44 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:38 PM.