English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I would like to have this table automatically created - I have a x Row by x Column (matrix) and want it converted to a single column table containing 'x' times 'x' records. (Actual table is presently 167 x 167, but would like to have query/SQL to be able to input actual size)

2007-01-08 12:14:23 · 1 answers · asked by Dennis H 1 in Computers & Internet Programming & Design

1 answers

Try this:

Dim input() as String
Dim x as integer

>>use actual column and Table names in select<<

For x = 0 to Table1.COUNT
SELECT Column1, Column2, Column3 from Table1
input(x) = Column1, Column2, column3
NEXT

FOR x = 0 to Table1.COUNT
Update Table2
SET Column1 = input(x)
NEXT

good luck

2007-01-08 15:47:33 · answer #1 · answered by rod 6 · 0 0

fedest.com, questions and answers