JKM@SA,
Take note of the actual names of the labels you are using to
display the fields you want to use in your calculation. (Click on the labels
and in the property grid look for (name).)
Create a new label and in the property grid go to Scripts > Before
Print and click ... , this will being up a windows where you can
enter a script
Enter the following between the 2 lines of existing code:
ctype(sender,xrLabel).Text =
Microsoft.VisualBasic.Format(label5.Text / label6.Text,"$#,##0.00###")
You will need to replace label5 and label6 with the names of
the labels for the fields you are using.
For those you want to know what the script is doing:
ctype(sender,xrLabel): Refers to the label calling the script
Microsoft.VisualBasic.Format(value,"$#,##0.00###"):
Applies a currency format to value.
-Michael