I have an option group that adds shipping charges after all items are ordered. See below:
Private Sub Frame95_Click()
If Me!Frame95 = 1 Then
Me!txtOrd_Shipping = 0
End If
If Me!Frame95 = 2 Then
Me!txtOrd_Shipping = Me!frmOrderDetailSub!Text19 * 0.1
'rem Text19 = total of items ordered
End If
If Me!Frame95 = 3 Then
Me!txtOrd_Shipping = 0
Me!txtOrd_Shipping.SetFocus
End If
End Sub
The problem arises when option 2 is selected and then Text19 is changed by adding new items. If I re-click option 2, nothing happens but if I select either 1 or 3 and then 2, it recomputes as I want it to. Can I get it recompute if the option doesn't change?
Private Sub Frame95_Click()
If Me!Frame95 = 1 Then
Me!txtOrd_Shipping = 0
End If
If Me!Frame95 = 2 Then
Me!txtOrd_Shipping = Me!frmOrderDetailSub!Text19 * 0.1
'rem Text19 = total of items ordered
End If
If Me!Frame95 = 3 Then
Me!txtOrd_Shipping = 0
Me!txtOrd_Shipping.SetFocus
End If
End Sub
The problem arises when option 2 is selected and then Text19 is changed by adding new items. If I re-click option 2, nothing happens but if I select either 1 or 3 and then 2, it recomputes as I want it to. Can I get it recompute if the option doesn't change?