Kill_Switch
Go Easy I'm New
- Local time
- Today, 03:10
- Joined
- Apr 23, 2009
- Messages
- 58
Good day AWF,
I've managed to get this to work using DCount, but realized that it's starting to bog down as it has to go through the whole recordset, which will only grow.
So I've got the queries working fine, and by themselves the 2 DLookups, give out the proper filtered counts. But when I try on combine into a division, I just get #Error. If I swap it out for the old DCount formula, it works fine.
I'm added the 100-() and *100 to get a value that's reflect the strength of the workforce, as opposed to how much is missing. Just looks better having a larger number being displayed.
Error formula
By itself,
is 26
By itself,
is 34
So essentially, I'm looking to do 100-((26/34)*100)
Which would provide a manning level of 76%
Original DCount Formula that was working
Thanks in advance.
I've managed to get this to work using DCount, but realized that it's starting to bog down as it has to go through the whole recordset, which will only grow.
So I've got the queries working fine, and by themselves the 2 DLookups, give out the proper filtered counts. But when I try on combine into a division, I just get #Error. If I swap it out for the old DCount formula, it works fine.
I'm added the 100-() and *100 to get a value that's reflect the strength of the workforce, as opposed to how much is missing. Just looks better having a larger number being displayed.
Error formula
Code:
=100-(DLookUp("Count_TRADE","qry_EMPTY_HRMS_COUNT_REG","[TRADE] = 'AVN'")/DLookUp("Count_MOC","qry_HRMS_COUNT_REG","[MOC] = 'AVN'")*100)
By itself,
Code:
=DLookUp("Count_TRADE","qry_EMPTY_HRMS_COUNT_REG","[TRADE] = 'AVN'")
By itself,
Code:
=DLookUp("Count_MOC","qry_HRMS_COUNT_REG","[MOC] = 'AVN'")
So essentially, I'm looking to do 100-((26/34)*100)
Which would provide a manning level of 76%
Original DCount Formula that was working
Code:
=100-(DCount("*","qry_EMPTY_HRMS","[HRMS] is null AND [MOC]='AVN' AND [COMP]='REG F'")/DCount("*","qry_EMPTY_HRMS","[POSITION] AND [COMP]='REG F' AND [MOC]='AVN'")*100)
Thanks in advance.