Rounding trouble

Sketchin

Registered User.
Local time
Yesterday, 23:13
Joined
Dec 20, 2011
Messages
580
Hello,

I am trying to display a number such as this: $7,018,901 as this $7.0M. I am using VBA with a DSUM to calculate the textbox value using this expression:

Code:
ContributionINDCAN = Nz(Round(DSum("Commitment", "qrymetricsproject_all_CAN", _
    "[ProgramtypeID] = 1"), 1))
Me.txtContributionINDCAN = ContributionINDCAN

Obviously this yields a result like this $7,018,901.00 because it is rounding to 1 decimal point.

Perhaps I can display my result using some clever formatting??
 

Users who are viewing this thread

Back
Top Bottom