Click here to Skip to main content
15,916,189 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,
I used following expression to get total of my field's value, but it print
#Error at that place.
=Sum(Fields!YourField.Value)

Also, I need to format the value, I used expression Format(Fields!YourField.Value,"#####.00")
but it prints #####.00 instead of printing my values.

Also, I want to format my date to 22 June 2010, how to do it.


Please advise how to do it.
Thanks
Furqan
Posted
Comments
pankajupadhyay29 7-Mar-11 4:38am    
can you put a bit of your markup here.

1 solution

#Error at that place.
=Sum(Fields!YourField.Value)


1. Make sure that the dataset is defined for the control such that direct field reference can be done.
2. Check if all the fields has valid values such that they can be added. Like, if you have an empty string/null, it will fail. For such cases, you need to modify the field value before using SUM.

but it prints #####.00 instead of printing my values.
Right click control and select properties -> Format tab -> Select standard format if any or use custom format as #####.##

I want to format my date to 22 June 2010, how to do it.
Right click control and select properties -> Format tab -> Select standard format if any or use
custom format as =Format(Fields!myDate.Value, “dd-MMM-yyyy”)
 
Share this answer
 
Comments
Furqan Sehgal 7-Mar-11 5:33am    
Thank you !

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900