If rdoDay.Checked = True Then Quote.DrivingHrs = txtDrivingHours.Text Quote.WaitingCount = txtWaiting.Text Quote.TripCost = (Quote.F75Mileage * DayCharge(2)) + (Quote.AddMileage * DayCharge(3)) + (Quote.DrivingHrs * DayCharge(0)) + (Quote.WaitingCount * DayCharge(1)) ElseIf rdoOvernight.Checked = True Then Quote.DrivingHrs = txtDrivingHours.Text Quote.OverCount = txtNights.Text Quote.TripCost = (Quote.F75Mileage * OverCharge(2)) + (Quote.AddMileage * OverCharge(3)) + (Quote.DrivingHrs * OverCharge(0)) + (Quote.OverCount * OverCharge(1)) End If
The error highlights the last line of the if statement beginning "Quote.TripCost" as the error, but I don't understand why..
Any help is appreciated, thanks.
(sorry if this is a basic question, i'm new at this..)

New Topic/Question
Reply




MultiQuote




|