A
Alanclen
I'm very new to Access and am having difficulty getting a calculation to
work. I have code in the AdultFare(After_Update) field as follows:
Private Sub AdultFare_AfterUpdate()
If [Period] < 5 Then [AdContractPrice] = [AdultFare] * 31.5
If [Period] > 4 < 7 Then [AdContractPrice] = [AdultFare] * [Period] * 7.65625
If [Period] > 6 < 10 Then [AdContractPrice] = [AdultFare] * [Period] * 7
If [Period] > 9 Then [AdContractPrice] = [AdultFare] * [Period] * 6.5625
End Sub
This only gives the correct answer for periods >6 & >9. Can anyone help
please.
work. I have code in the AdultFare(After_Update) field as follows:
Private Sub AdultFare_AfterUpdate()
If [Period] < 5 Then [AdContractPrice] = [AdultFare] * 31.5
If [Period] > 4 < 7 Then [AdContractPrice] = [AdultFare] * [Period] * 7.65625
If [Period] > 6 < 10 Then [AdContractPrice] = [AdultFare] * [Period] * 7
If [Period] > 9 Then [AdContractPrice] = [AdultFare] * [Period] * 6.5625
End Sub
This only gives the correct answer for periods >6 & >9. Can anyone help
please.