I have 3 tick boxes that affect the value in a text box on the same form called Subscriptions_Balance. They all work individually but not together. Is there a way to write these so they work together as both the Direct_Debit and Reduced_Subscriptions need to know whether the EC_Through_Igem is true?
Private Sub Direct_Debit_AfterUpdate()
If Me!Direct_Debit = True Then
Me!Subscriptions_Balance = (Me!EC_Fee + Me!Subscriptions) - Me!Direct_Debit_Discount
Else Me!Subscriptions_Balance = Me!EC_Fee + Me!Subscriptions
End If
End Sub
Private Sub Reduced_Subscriptions_AfterUpdate()
If Me!Reduced_Subscriptions = True Then
Me!Subscriptions_Balance = Me!Reduced_EC_Fee + Me!Reduced_Subscription
Else
Me!Subscriptions_Balance = Me!Subscriptions + Me!EC_Fee
End If
End Sub
Private Sub EC_Through_IGEM_AfterUpdate()
If Me!EC_Through_IGEM = True Then
Me!Subscriptions_Balance = Me!Subscriptions + Me!EC_Fee
Else
Me!Subscriptions_Balance = Me!Subscriptions
End If
End Sub
Private Sub Direct_Debit_AfterUpdate()
If Me!Direct_Debit = True Then
Me!Subscriptions_Balance = (Me!EC_Fee + Me!Subscriptions) - Me!Direct_Debit_Discount
Else Me!Subscriptions_Balance = Me!EC_Fee + Me!Subscriptions
End If
End Sub
Private Sub Reduced_Subscriptions_AfterUpdate()
If Me!Reduced_Subscriptions = True Then
Me!Subscriptions_Balance = Me!Reduced_EC_Fee + Me!Reduced_Subscription
Else
Me!Subscriptions_Balance = Me!Subscriptions + Me!EC_Fee
End If
End Sub
Private Sub EC_Through_IGEM_AfterUpdate()
If Me!EC_Through_IGEM = True Then
Me!Subscriptions_Balance = Me!Subscriptions + Me!EC_Fee
Else
Me!Subscriptions_Balance = Me!Subscriptions
End If
End Sub