Help
I have been trying to write a calculated field , Im in a scale_wt.set in the form (design mode). I'm trying to get a calculated field to subtract another calculated field
I have to first determine if the truck is being paid by the tonne or by the load. The calculated fields are in the scale_wt.set (form)and look at values in the location.dbf which has two fields (currency)Truck_Load and Self_Load (because there are two types of trucks)and are written up as:
Pay_Load (goes to location.dbf and checks to see if there is a value in Truck_Load, if yes then it gets the truck load rate, if not then it gets the Self_Load load rate)
if(Location->Truck_Load>0,Location->Truck_Load,Self_Load)
Pay_Tonne (goes to location.dbf and checks to see if there is a value in Truck_MTonne, if yes then it gets the truck tonne rate and multiplies mtonnes by the truck tonne rate, if not then it gets the self loader tonne rate and multiplies mtonnes by the Self_MTonne rate)
if(Location->Truck_MTonne>0,Calc->Truck_MTonne*Location->Truck_MTonne,Calc->Truck_MTonne*Location->Self_MTonne)
and then I have a calculated field (in scale_wt.set form) called Pay_Truck which gets the value if the truck gets paid by the tonne or load written as:
if(Calc->Pay_Tonne>0,Calc->Pay_Tonne,Calc->Pay_Load)
then I have another calculated field (in scale_wt.set form) called Should_Make$ which goes to the location.dbf and multiplies the truck turnaround time by the trucks hourly base rate for highway
location->Truck_HourlyRate*Location->Turnaround
Now the problem is I want to make a calculated field called make_rate which takes the value in Pay_Truck and subtracts the value in Should_Make$. I keep getting "Expected Value" error message.
I tried Pay_Truck-Should_Make$
I have tried several if statements such as
if(Pay_Truck>0,Pay_Truck-Should_Make$,0)
or.. if(Pay_Truck>,Pay_Truck-Should_Make$,"No")
nothing seems to work, any suggestions would be greatly appreciated
I have been trying to write a calculated field , Im in a scale_wt.set in the form (design mode). I'm trying to get a calculated field to subtract another calculated field
I have to first determine if the truck is being paid by the tonne or by the load. The calculated fields are in the scale_wt.set (form)and look at values in the location.dbf which has two fields (currency)Truck_Load and Self_Load (because there are two types of trucks)and are written up as:
Pay_Load (goes to location.dbf and checks to see if there is a value in Truck_Load, if yes then it gets the truck load rate, if not then it gets the Self_Load load rate)
if(Location->Truck_Load>0,Location->Truck_Load,Self_Load)
Pay_Tonne (goes to location.dbf and checks to see if there is a value in Truck_MTonne, if yes then it gets the truck tonne rate and multiplies mtonnes by the truck tonne rate, if not then it gets the self loader tonne rate and multiplies mtonnes by the Self_MTonne rate)
if(Location->Truck_MTonne>0,Calc->Truck_MTonne*Location->Truck_MTonne,Calc->Truck_MTonne*Location->Self_MTonne)
and then I have a calculated field (in scale_wt.set form) called Pay_Truck which gets the value if the truck gets paid by the tonne or load written as:
if(Calc->Pay_Tonne>0,Calc->Pay_Tonne,Calc->Pay_Load)
then I have another calculated field (in scale_wt.set form) called Should_Make$ which goes to the location.dbf and multiplies the truck turnaround time by the trucks hourly base rate for highway
location->Truck_HourlyRate*Location->Turnaround
Now the problem is I want to make a calculated field called make_rate which takes the value in Pay_Truck and subtracts the value in Should_Make$. I keep getting "Expected Value" error message.
I tried Pay_Truck-Should_Make$
I have tried several if statements such as
if(Pay_Truck>0,Pay_Truck-Should_Make$,0)
or.. if(Pay_Truck>,Pay_Truck-Should_Make$,"No")
nothing seems to work, any suggestions would be greatly appreciated
Comment