Hello!
I am currently working on building a repair log and having trouble calculating a total for all the parts that were used in the repair. I used the Total Sum function built into MS Access 2007. This function behaves properly when I do a simple calculation such as multiplying Part Price, Quantity, and Discount. However, I need to modify the calculation to account for repairs that are done under warranty and thus are free.
My approach for this was to add a Yes/No field called Warranty and modify my calculation to an IF statement. Below is the expression I created in the Control Source. When selecting Sum in the Total dropdown, nothing seems to happen.
IIF([warranty]=0, [partprice]x[discount]x[quantity], 0)
Please offer any suggestions you can.
Thank you everyone!
I am currently working on building a repair log and having trouble calculating a total for all the parts that were used in the repair. I used the Total Sum function built into MS Access 2007. This function behaves properly when I do a simple calculation such as multiplying Part Price, Quantity, and Discount. However, I need to modify the calculation to account for repairs that are done under warranty and thus are free.
My approach for this was to add a Yes/No field called Warranty and modify my calculation to an IF statement. Below is the expression I created in the Control Source. When selecting Sum in the Total dropdown, nothing seems to happen.
IIF([warranty]=0, [partprice]x[discount]x[quantity], 0)
Please offer any suggestions you can.
Thank you everyone!