Hello all....I need to know how to perform math on query results...Here's what im looking at in the query
Area1 3 8
Area2 4 8
Area3 5 8
Area4 2 8
Now here's what I need it to do, firstly add up the first column
Area1 3 8
Area2 4 8
Area3 5 8
Area4 2 8
14
Next multiply the second column value by 60 but only once because it's always going to be the same value...
Area1 3 8
Area2 4 8
Area3 5 8
Area4 2 8
14 480
Then divide the first column by its sum
Area1 3 8 .21
Area2 4 8 .28
Area3 5 8 .35
Area4 2 8 .14
14 480
Next multiply that now "3rd" column by the second column's sum
Area1 3 8 .21 100.8
Area2 4 8 .28 134.4
Area3 5 8 .35 168
Area4 2 8 .14 67.2
14 480
Finally divide that new column by 60...
Area1 3 8 .21 100.8 1.68
Area2 4 8 .28 134.4 2.23
Area3 5 8 .35 168 2.8
Area4 2 8 .14 67.2 1.12
14 480
Fun right? Now I don't need everything listed out like that in the query or a report but I do need that final column results displayed in the query or a report...I just cannot for the life of me figure out how to do manipulte query results (or table fields or anything for that matter) in access using math equations. Let me know if you would know how to do this or at least a starting point for me...
Oh and importantly I need to do the math on the results of the query...I cannot directly pull the information from the table to do the math on it if that makes sense because those numbers come from specific criteria ie user's login and date of work...Let me know if you need more info...Thanks all!
Area1 3 8
Area2 4 8
Area3 5 8
Area4 2 8
Now here's what I need it to do, firstly add up the first column
Area1 3 8
Area2 4 8
Area3 5 8
Area4 2 8
14
Next multiply the second column value by 60 but only once because it's always going to be the same value...
Area1 3 8
Area2 4 8
Area3 5 8
Area4 2 8
14 480
Then divide the first column by its sum
Area1 3 8 .21
Area2 4 8 .28
Area3 5 8 .35
Area4 2 8 .14
14 480
Next multiply that now "3rd" column by the second column's sum
Area1 3 8 .21 100.8
Area2 4 8 .28 134.4
Area3 5 8 .35 168
Area4 2 8 .14 67.2
14 480
Finally divide that new column by 60...
Area1 3 8 .21 100.8 1.68
Area2 4 8 .28 134.4 2.23
Area3 5 8 .35 168 2.8
Area4 2 8 .14 67.2 1.12
14 480
Fun right? Now I don't need everything listed out like that in the query or a report but I do need that final column results displayed in the query or a report...I just cannot for the life of me figure out how to do manipulte query results (or table fields or anything for that matter) in access using math equations. Let me know if you would know how to do this or at least a starting point for me...
Oh and importantly I need to do the math on the results of the query...I cannot directly pull the information from the table to do the math on it if that makes sense because those numbers come from specific criteria ie user's login and date of work...Let me know if you need more info...Thanks all!
Last edited: