PC Review


Reply
Thread Tools Rate Thread

Deconstructing a table

 
 
Bythsx-Addagio
Guest
Posts: n/a
 
      19th Mar 2010
Hello,
I am hoping to work out a method to transform a data table into a running
list.
The table has identifiers in column A, and product weights in a dynamic
number of columns to the right. i.e. Cols B-M. I would like to manipulate
the table into a running list of three columns

Col A = Value of ID @ row(i)
Col B = Product name [value of Cols B-M row(1)]
Col C = Value of weight @ row(i)

Col A | Col B | Col C
A2 B1 B2
A3 B1 B3
A4 B1 B4
A2 C1 C2
A3 C1 C3
A4 C1 C4
A2 D1 A2 ... etc.

I was thinking a 2D array might be the correct approach. Would there be a
better solution? And if the Array is the way to go, where would be the best
place to start?

Thanks in advance,

 
Reply With Quote
 
 
 
 
KARL DEWEY
Guest
Posts: n/a
 
      19th Mar 2010
>>The table has identifiers in column A, and product weights in a dynamic
number of columns to the right. i.e. Cols B-M.
I never heard of 'dynamic number of columns to the right' as Access table
records have a FIXED number of field. It sounds like you have a spreadsheet
(like Excel).

I though you could use a union query but your 'Col C = Value of weight @
row(i)' I do not get.

Post sample data from current table and how it would look in the new table.

--
Build a little, test a little.


"Bythsx-Addagio" wrote:

> Hello,
> I am hoping to work out a method to transform a data table into a running
> list.
> The table has identifiers in column A, and product weights in a dynamic
> number of columns to the right. i.e. Cols B-M. I would like to manipulate
> the table into a running list of three columns
>
> Col A = Value of ID @ row(i)
> Col B = Product name [value of Cols B-M row(1)]
> Col C = Value of weight @ row(i)
>
> Col A | Col B | Col C
> A2 B1 B2
> A3 B1 B3
> A4 B1 B4
> A2 C1 C2
> A3 C1 C3
> A4 C1 C4
> A2 D1 A2 ... etc.
>
> I was thinking a 2D array might be the correct approach. Would there be a
> better solution? And if the Array is the way to go, where would be the best
> place to start?
>
> Thanks in advance,
>

 
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
Deconstructing a table Bythsx-Addagio Microsoft Excel Programming 0 19th Mar 2010 04:42 PM
Deconstructing a table - How to take a table back to the begining Bythsx-Addagio Microsoft Excel Programming 0 19th Mar 2010 03:49 PM
Deconstructing a Raid 0 array TimB Windows XP Hardware 1 29th Jan 2008 09:37 PM
Deconstructing an add-in =?Utf-8?B?QXJ0dXJv?= Microsoft Excel Programming 1 5th Nov 2004 04:11 PM
Deconstructing a PowerPoint Presentation? Chaz Microsoft Powerpoint 1 30th Jul 2003 06:36 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:39 PM.