B
Bostwick
Guest
I am trying to set a minimum charge, however I have had no luck. Here is what I want, if the LBS are < 34000 and the mrt < 40 then the total = $154.00 + everything else. The code will explain further:
If txtPounds < 34000 And mrt < 41 Then
txtTotal = 154 + (txtStops - 1) * 10 + txtAddExpense + txtMileageCharge + (txtMiles_RT * 0.0697)
Else
txtTotal = txtMileRate * (txtPounds / 2000) + (txtStops - 1) * 10 + txtAddExpense + txtMileageCharge + (txtMiles_RT * 0.0697)
End If
If txtPounds < 34000 And mrt < 41 Then
txtTotal = 154 + (txtStops - 1) * 10 + txtAddExpense + txtMileageCharge + (txtMiles_RT * 0.0697)
Else
txtTotal = txtMileRate * (txtPounds / 2000) + (txtStops - 1) * 10 + txtAddExpense + txtMileageCharge + (txtMiles_RT * 0.0697)
End If