|
-
Nov 16th, 2010, 05:38 AM
#1
Thread Starter
Junior Member
correct the expression of the textbox field
hi... to all..
i've written the code in expression field...
=format(sum(fields!salary.value),"##\,##\,##\,##\,##\,##\,##0.00")
the code is for printing the number in this format(12,23,23,34,123.00)
now i got an problem i.e if i give 5 digit the it will print ,,,,,12,123.00 the remaining commas
are printed.. i dont want to print the extra commas.. how the word length is there that much it
should take..i.e( for 5 digit 12,123.00 and for 9 digit 12,23,23,123.00)...
i've tried by removing some of the #'s but it is for fixed number..
please help me...
-
Nov 16th, 2010, 05:42 AM
#2
Fanatic Member
Re: correct the expression of the textbox field
You can use
format(sum(fields!salary.value),"0,0.00")
WHETHER YOU SUCCEED OR FAIL IS NOT AS IMPORTANT AS WHETHER YOU TRIED YOUR BEST 
-
Nov 16th, 2010, 05:47 AM
#3
Thread Starter
Junior Member
Re: correct the expression of the textbox field
hi...
the values are displaying in 123,123,123.00 format..
but i want in 12,12,12,123.00 this format...
-
Nov 16th, 2010, 05:54 AM
#4
Fanatic Member
Re: correct the expression of the textbox field
It might be wrong but i would recommend
replace(format(sum(fields!salary.value),"##\,##\,##\,##\,##\,##\,##0.00"),",,","")
WHETHER YOU SUCCEED OR FAIL IS NOT AS IMPORTANT AS WHETHER YOU TRIED YOUR BEST 
-
Nov 16th, 2010, 05:59 AM
#5
Thread Starter
Junior Member
Re: correct the expression of the textbox field
sorry sir...
it is displaying the same as the previous the
extra commas..
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|