G
Guest
How do you incorporate a range of numbers with an if..then..else statement? Here's how my code starts
Private Sub ProductID_AfterUpdate(
If Me!ProductID = 12 and Me!Quantity >1The
Me!QTYDiscount =
Els
Me!QTYDiscount =
End I
Simple enough. But now, I want to say that if ProductID=14 and quantity is between 10 and 39 then the quantity discount (QTYDiscount) should be .5
If the quantity is greater than 39 for the same product ID then the quantity discount should be 1.
How do you say that in VBA, which doesn't like Between And. Appreciate any help! Thank yo
Ken
Private Sub ProductID_AfterUpdate(
If Me!ProductID = 12 and Me!Quantity >1The
Me!QTYDiscount =
Els
Me!QTYDiscount =
End I
Simple enough. But now, I want to say that if ProductID=14 and quantity is between 10 and 39 then the quantity discount (QTYDiscount) should be .5
If the quantity is greater than 39 for the same product ID then the quantity discount should be 1.
How do you say that in VBA, which doesn't like Between And. Appreciate any help! Thank yo
Ken