Jumat, 15 Juni 2018

[MS_AccessPros] Re: Format in iif statement in query

 

Hi Liz - Is this what you are looking for?


Format([myDecimal],"0.00%")

Regards,
Bill Mosca, Founder - MS_Access_Professionals
http://www.thatlldoit.com
My nothing-to-do-with-Access blog
http://wrmosca.wordpress.com



---In MS_Access_Professionals@yahoogroups.com, <liz_ravenwood@beaerospace.com> wrote :

Pros, I want to put the numeric values in percentage or at least rounded by 2 and multiplied by 100 and get this only where the long decimals are have percentages.

Summary

SumOfSSCostPlusFreight

SumOfProjectCostPlusFreight

SumOfTotalProjectSavingsThisSupplier

FirstOfLeadTimeWeeks

Reduction

53926.93

2804200.36

0

Benchmark

43461.54

2260008.14

544192.22

2

0.1940632444680236757404881012

31674.94

1647105.74

1157094.62

10

0.4126290818962736314604852272


Here' s my SQL with the Supplier not showing for privacy reasons.

SELECT SummaryWOReduction.Supplier, SummaryWOReduction.SumOfSSCostPlusFreight, SummaryWOReduction.SumOfProjectCostPlusFreight, SummaryWOReduction.SumOfTotalProjectSavingsThisSupplier, SummaryWOReduction.FirstOfLeadTimeWeeks, IIf([Supplier]="Current","Benchmark",(DSum("SumOfProjectCostPlusFreight","SummaryWOReduction","Supplier='Current'")-[SumOfProjectCostPlusFreight])/DSum("SumOfProjectCostPlusFreight","SummaryWOReduction","Supplier='Current'")) AS Reduction
FROM SummaryWOReduction;

Respectfully,
[RCEmailSigLogo]
Liz Ravenwood
Data Technologies
Interior Systems
Rockwell Collins
1851 So. Pantano Rd, Tucson, AZ 85710 USA
(520) 239-4808
Liz_ravenwood@beaerospace.com<mailto:Liz_ravenwood@beaerospace.com>
rockwellcollins.com<http://www.rockwellcollins.com/>



This email (and all attachments) is for the sole use of the intended recipient(s) and may contain privileged and/or proprietary information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.


[Non-text portions of this message have been removed]

 

__._,_.___

Posted by: wrmosca@comcast.net
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (2)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.


.

__,_._,___

Tidak ada komentar:

Posting Komentar