Infinite
More left to learn.
- Local time
- Today, 11:47
- Joined
- Mar 16, 2015
- Messages
- 402
Hello! I currently have:
What is supposed to happen, is I have a retail price per item, and a default price per item. We have change the retail price in the last couple of years mulitple times, so I created a tblItemRetail table that has a RItemKey (PK), RITem, RStartDate, REndEndDate, RCost and RShowOnline. I simply stuck the star date and end dates for the dates that we changed the item retail price. The problem im having, is that query is not working correctly. In the 2 attached pictures you can see what it should do. It should just give me the retail price for a 44 mag. But, it gives me 2 prices. The price that it was (there was a price change, so its working) but, it ALSO gives me the original price. What am I doing wrong here? Thanks!
Code:
Work: IIf([Date]>[RStartDate] And [Date]<[REndDate],[RCost]*[Quantity],[Price]*[Quantity])
What is supposed to happen, is I have a retail price per item, and a default price per item. We have change the retail price in the last couple of years mulitple times, so I created a tblItemRetail table that has a RItemKey (PK), RITem, RStartDate, REndEndDate, RCost and RShowOnline. I simply stuck the star date and end dates for the dates that we changed the item retail price. The problem im having, is that query is not working correctly. In the 2 attached pictures you can see what it should do. It should just give me the retail price for a 44 mag. But, it gives me 2 prices. The price that it was (there was a price change, so its working) but, it ALSO gives me the original price. What am I doing wrong here? Thanks!