Hi Adland,
Thanks for response.
---------------------
Before we go any further, could you please answer the questions below:
1. How would use do the calculations, writing sql script or operating on a DataSet programmatically?
The calculation would be displayed within the web form, so they will need to be written back to the same table. So, more than likely writing a sql script
2. What is the structure of the three tables?
The fields within the tables that needs to be calculated are in the "Decimal" (18,0)format
3. Could you provide the formular of the calculations in detail?
I give you an example of the formula?
Table A
FieldA,
Field B,
Field C,
Field D,
Field E
The sum of the formulaof Table A is displayed in Field E (Field A + Field C + Field D)
TableB
FieldA,
Field B,
Field C,
Field D,
Field E
The sum of the formulaof TableB is displayed in Field E (Field A + FieldB + Field C - Field D)
TableC
FieldA (populated from Field E from table A)
Field B,
Field C (populated from Field E from table B
Field D,
Field E
The sum of the formulaof TableC is displayed in Field E (Field A + FieldB- Field C+ Field D)
In general order for my web forms to work, they rely on cross data population from other tables. In the example above, only Table C uses cross data population.
I can only guess that if I’m trying to calculate an equation, them I will need to add the table name for each field in Table C. I'm most probably wrong on this, as I'm a complete novice.
I would like to use SQL script to perform the calculations. However, if you could explain how it could be done I Datasets as well, I would be truly grateful.
Your help is much welcome
-------------------------------------------------- -----------
Hi
I have three web forms created in VWD that are linked to a an sql database with three tables (Table A, Table B and Table C).
Each table has a number decimal field types.
I need to calculate some but not all decimal fields in table A;
I also need to calculate totals in some but not all decimal fields in table B;
Table C needs to populate the totalsfrom table A and B, also calculating totals withinthe sametable (Table C). I also need to subtract some values as well in cetain places.
Can someone please help me out or at least point me to a webpage that can help me out