Hello, I am trying to make a calculated field on a report that takes a number generated by one query and divides it by another number (obtained by another query) and display that number as a percent. I am having trouble finding the correct function to get this done with.
It should look something like this.
Sum of optionA is: 25 <-query1
with another field that is calculated out beside it looking something like this
=[query1].[field]/[query2].[field]
lets say query2 was 100 so it should look like...
Sum of optionA is: 25 and 25% of the whole chose A.
EDIT
=["optionA"]/[Personnel_Count]!["Personnel_Count"]
I was trying to use the above equation to calculate the number I needed. (made with the expression builder)
When I try to run the report with this in it, access asks me to enter [Personnel_Count].
I tried entering nothing and entering the correct number.
Both times that field displayed #Error on the report.
It should look something like this.
Sum of optionA is: 25 <-query1
with another field that is calculated out beside it looking something like this
=[query1].[field]/[query2].[field]
lets say query2 was 100 so it should look like...
Sum of optionA is: 25 and 25% of the whole chose A.
EDIT
=["optionA"]/[Personnel_Count]!["Personnel_Count"]
I was trying to use the above equation to calculate the number I needed. (made with the expression builder)
When I try to run the report with this in it, access asks me to enter [Personnel_Count].
I tried entering nothing and entering the correct number.
Both times that field displayed #Error on the report.
Last edited: