D
Dave Elliott
I have 5 textboxes on my form that I use to calculate formulas
Text406 is used to add hours
Text500 is used for the customer rate
Text411 is used for Material
Text413 multiplies Text411*1.3 for a 30% markup
Finally Text407 is supposed to total them up.
So, you take the total hours(Text406) multiply the # of hours(Text406)
Then add the material(Text413)
The default number of Hours(Text406) is 0
The default Rate(Text500) is 65 ($65.00)
The default material(Text411) is 0
The code below works except for that is shows the customer rate(Text500)
even when there is no hours(Text406)
so that you get $65.00 by default.
What am I missing?
The number of hours divided by 2 is correct by the way (Text406/2)
=NZ([Text406]/2*[Text500]+[Text500]+[Text413],0)
Text406 is used to add hours
Text500 is used for the customer rate
Text411 is used for Material
Text413 multiplies Text411*1.3 for a 30% markup
Finally Text407 is supposed to total them up.
So, you take the total hours(Text406) multiply the # of hours(Text406)
Then add the material(Text413)
The default number of Hours(Text406) is 0
The default Rate(Text500) is 65 ($65.00)
The default material(Text411) is 0
The code below works except for that is shows the customer rate(Text500)
even when there is no hours(Text406)
so that you get $65.00 by default.
What am I missing?
The number of hours divided by 2 is correct by the way (Text406/2)
=NZ([Text406]/2*[Text500]+[Text500]+[Text413],0)