dwcrockford
New Member
- Joined
- Sep 1, 2015
- Messages
- 27
I need to do calculations across multiple tables and am not certain coding regarding this, and if I need to make a separate table that collects the data (and calculates it), and then a report based on that table so it displays on a form, so here goes.
3 tables (table 1, table 2, table 3)
3 columns (fields) in each table - all with number as data type
Each of these columns are totalled using the SUM total function in ACCESS.
I need to add the total of column 1 (table 1), column 1 (table 2) and column 1 (table 3) together for a "grand total).
I then need to somewhere have a if/then/else statement based on that calculated total: ie., if the sum of (the above) is less than 6, then return "0", if = to 6, then return 1, if = to 7, then return 2, if greater than 7 then return 3.
I will be using this same similar calculation to return different values that will ultimately all be added together as well.
I see no place when choosing fields in a query for selecting the "SUM" value of the table columns (fields). Or is that entered into the coding?
3 tables (table 1, table 2, table 3)
3 columns (fields) in each table - all with number as data type
Each of these columns are totalled using the SUM total function in ACCESS.
I need to add the total of column 1 (table 1), column 1 (table 2) and column 1 (table 3) together for a "grand total).
I then need to somewhere have a if/then/else statement based on that calculated total: ie., if the sum of (the above) is less than 6, then return "0", if = to 6, then return 1, if = to 7, then return 2, if greater than 7 then return 3.
I will be using this same similar calculation to return different values that will ultimately all be added together as well.
I see no place when choosing fields in a query for selecting the "SUM" value of the table columns (fields). Or is that entered into the coding?