LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Format Question

Hi Guys,



I may not have explained myself properly yesterday so I am re-posting hoping
this time I have explained a little better.



Can someone tell me why?



I have a form called "ResultsForm"

On that form I have a label called "SRWValueCalculated"

In my code I have "Dim TotalCost As Currency" which gets its value using
this bit of code:

"TotalCost = TotalCost + Cost4GoodRecs + Cost4BadRecs + Cost4DOBRecs"



The variables above, Cost4GoodRecs, Cost4BadRecs, Cost4DOBRecs are all
dimensioned as Currency



If I format the label Like so:

ResultsForm.SRWValueCalculated = Format(TotalCost, "###,##0.00")

If the value of TotalCost is 5,241.60 it displays as 5,241.60 which is fine,
but, if the value of TotalCost is 10,483.20 it

displays as 10,483.2 missing the final 0 (zero)



What is wrong?



As always, your help is appreciated.



Best Regards,



Steve.



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Format Question SITCFanTN Excel Discussion (Misc queries) 5 April 8th 10 10:28 PM
Yet Another Name Format Question Dallas PM Excel Discussion (Misc queries) 3 April 1st 08 10:01 PM
Format Question VegasBurger Excel Worksheet Functions 2 June 24th 06 06:34 PM
Format question Luis Excel Discussion (Misc queries) 1 June 22nd 05 02:42 PM
Format question Mike NG Excel Programming 1 July 4th 04 06:35 PM


All times are GMT +1. The time now is 08:19 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"