gigifarrow
asked on
Fortmatting a Percenatge in a text box
I have the code below that when it calculates I get a value of
21.44067796610169491525423 7288%
I need it to be 21.44%.
How do I get it to format with out messing up the calculation? The calcution does this:
1. Counts the number that is 100 percent done
2. then it sums the percentage that is not 100% done
3. Totals those together (gives you 25.3)
4.then it divides that answer by 1.18
Here is the code:
=(DCount("[Percentage]","q rytemplePe rcentage", " [Unit ]= ('2-1AD')AND Percentage IN('100') ")+Nz(DSum("[Percentage]", "qrytemple Percentage "," [Percentage ] NOT IN ('100') AND Unit =('2-1AD')" & " AND " & " Not IsNull (InShopDate)")/100))/1.18 & "%"
21.44067796610169491525423
I need it to be 21.44%.
How do I get it to format with out messing up the calculation? The calcution does this:
1. Counts the number that is 100 percent done
2. then it sums the percentage that is not 100% done
3. Totals those together (gives you 25.3)
4.then it divides that answer by 1.18
Here is the code:
=(DCount("[Percentage]","q
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Accepted answer: 168 points for imnorie's comment #a38775602
Assisted answer: 166 points for shorvath's comment #a38775616
Assisted answer: 166 points for DatabaseMX's comment #a38775607
for the following reason:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.