G
Guest
I Have the following Tables:
Table A with Columns: Port(text), Sub(double),Spec(Double)
Table B with one column: PERCENT(integer)
Table C with one column: PERCENT(integer)
Table D with Columns: Port(text), Sub(double), Spec(Double)
In table A Port has values: "Egg", "Cheese", "Bacon"
Table B PERCENT has 100 values ranging from 1 to 100
Table C sam as table B
Table D is where I want to append my Calculated Values.
What i want to do something like this or similar code:
For Each Port In Table A
For Each PERCENT In Table B
For Each PERCENT In Table C
SQLString = "Insert Into Table D (Sub,Spec) & _
" Select Sub*PERCENT as A, Spec*PERCENT as B & _
" From Table A"
Docmd.RunSQL SQLString
Next
Next
Next
Where the end result is a table with 30,000 rows of data. any thoughts on
how to go about doing this. Thanks
Table A with Columns: Port(text), Sub(double),Spec(Double)
Table B with one column: PERCENT(integer)
Table C with one column: PERCENT(integer)
Table D with Columns: Port(text), Sub(double), Spec(Double)
In table A Port has values: "Egg", "Cheese", "Bacon"
Table B PERCENT has 100 values ranging from 1 to 100
Table C sam as table B
Table D is where I want to append my Calculated Values.
What i want to do something like this or similar code:
For Each Port In Table A
For Each PERCENT In Table B
For Each PERCENT In Table C
SQLString = "Insert Into Table D (Sub,Spec) & _
" Select Sub*PERCENT as A, Spec*PERCENT as B & _
" From Table A"
Docmd.RunSQL SQLString
Next
Next
Next
Where the end result is a table with 30,000 rows of data. any thoughts on
how to go about doing this. Thanks