I have a calculated field on my report that takes the value of a total from another field and multiplys it times a percentage. I have this code working fine:
=IIf([AgntPctProf]<"100",[TotProfLoss]*("." & [AgntPctProf]),[TotProfLoss])
Since I am taking a number entered in a table to figure a percent. I just relized that sometimes I will have a negative number in the TotProfLoss field, and when it is, I am getting the value of TotProfLoss instead of the calculation. How would I change this to take negative numbers into account, and still perform the calculation? Thanks, Ken.
- If you are flammable and have legs, you are never blocking a fire exit.
Mitch Hedburg
=IIf([AgntPctProf]<"100",[TotProfLoss]*("." & [AgntPctProf]),[TotProfLoss])
Since I am taking a number entered in a table to figure a percent. I just relized that sometimes I will have a negative number in the TotProfLoss field, and when it is, I am getting the value of TotProfLoss instead of the calculation. How would I change this to take negative numbers into account, and still perform the calculation? Thanks, Ken.
- If you are flammable and have legs, you are never blocking a fire exit.
Mitch Hedburg