G
Guest
I am trying to learn the best way to create a new table off of an existing
table based on the data found in each row of that table.
I have a general idea of the logic... I have worked with R-base and MYSQL
but need to do it in Access. I also have a beta of Access 2007.
Here is a run down... My existing table has several columns, two have data I
want to use in my query. One is min the other is max.
I need to set a pointer (in Rbase we called it a Cursor) to start at the
first row and check the min number and the max number. Compute the
difference, divide by two and then LOAD into the new table a copy(s) of the
Row I am pointing to based on "x" number calcuated.
So if the min is 10 and the max is 20, I need to load 5 rows (20-10/2=5)
into my new table.. made up of the data in the pointed (Cursor) row of the
first table and add a unique identifer to each row. Then...
Goto or Point to the next row in the main table and run the process again
untill I run through the entire table.
Wht would be the easiest way to do this in Access... VB or SQL? Or am I way
off base with my thinking?
table based on the data found in each row of that table.
I have a general idea of the logic... I have worked with R-base and MYSQL
but need to do it in Access. I also have a beta of Access 2007.
Here is a run down... My existing table has several columns, two have data I
want to use in my query. One is min the other is max.
I need to set a pointer (in Rbase we called it a Cursor) to start at the
first row and check the min number and the max number. Compute the
difference, divide by two and then LOAD into the new table a copy(s) of the
Row I am pointing to based on "x" number calcuated.
So if the min is 10 and the max is 20, I need to load 5 rows (20-10/2=5)
into my new table.. made up of the data in the pointed (Cursor) row of the
first table and add a unique identifer to each row. Then...
Goto or Point to the next row in the main table and run the process again
untill I run through the entire table.
Wht would be the easiest way to do this in Access... VB or SQL? Or am I way
off base with my thinking?