V
vsteshenko
Hello,
This is my first post so I hope I'm doing this correctly. I am
currently working on creating an order form for sales associates at my
work to be used at conventions. I have a form with a subform. On the
main form, there is a text box that displays the sum of total orders
entered in the subform, [SUBTOTAL]. I'm trying to create another text
box on the main form, [GIFTS] that looks at the subtotal text box and
depending on the value, displays one out of three options.
I have set the control source of the Gifts text box to be the same as
in the Subtotal text box. I have entered the following code in the
even after update of the GIFTS tex box.
Private Sub Gifts_AfterUpdate()
If [Subtotal] >= 0 And [Subtotal] <= 2499 Then
Me.gifts = 0
ElseIf [Subtotal] >= 2500 And [Subtotal] <= 4999 Then
Me.gifts = 250
ElseIf [Subtotal] >= 5000 Then
Me.gifts = 600
End If
End Sub
Can somebody please help me with this, I have looked at allot of
messages and most of them deal with dates.
This is my first post so I hope I'm doing this correctly. I am
currently working on creating an order form for sales associates at my
work to be used at conventions. I have a form with a subform. On the
main form, there is a text box that displays the sum of total orders
entered in the subform, [SUBTOTAL]. I'm trying to create another text
box on the main form, [GIFTS] that looks at the subtotal text box and
depending on the value, displays one out of three options.
I have set the control source of the Gifts text box to be the same as
in the Subtotal text box. I have entered the following code in the
even after update of the GIFTS tex box.
Private Sub Gifts_AfterUpdate()
If [Subtotal] >= 0 And [Subtotal] <= 2499 Then
Me.gifts = 0
ElseIf [Subtotal] >= 2500 And [Subtotal] <= 4999 Then
Me.gifts = 250
ElseIf [Subtotal] >= 5000 Then
Me.gifts = 600
End If
End Sub
Can somebody please help me with this, I have looked at allot of
messages and most of them deal with dates.