skwilliams
Registered User.
- Local time
- Today, 06:51
- Joined
- Jan 18, 2002
- Messages
- 516
I'll try to explain in as much detail as possible.
If I have a table with 5 fields "Item, Qty, Price, AddlQty, AddlPrice" with thousands of items listed. Each item is listed numerous times. Below is a example of one item in the table to give an idea.
Item | Qty | Price | AddlQty | AddlPrice
AP453 25 43.20 0 0
AP453 50 62.00 0 0
AP453 75 87.90 0 0
AP453 100 111.60 0 0
AP453 999 111.60 25 27.80
The Qty 999 is just used to indicate an additional quantity.
What I have so far is a form with a Needed text box, Item combo box, Qty combo box, Price text box, AddlQty text box, and AddlPrice text box.
What I need is if the Item selected is AP453 and the amount entered in the Needed field is larger than 100 then the AddlQty will populate with 25 and the AddlPrice with 27.80. The AddlQty , AddlPrice, and Maximum quantity will vary by item numbers. For example, this item number has a maximum quantity of 100 before using additional quantity and price. But another item number may have a maximum quantity of 125 or 150 before using additionals.
I've been struggling with this issue for a while now. Any help is greatly appreciated.
Thanks.
Steve
If I have a table with 5 fields "Item, Qty, Price, AddlQty, AddlPrice" with thousands of items listed. Each item is listed numerous times. Below is a example of one item in the table to give an idea.
Item | Qty | Price | AddlQty | AddlPrice
AP453 25 43.20 0 0
AP453 50 62.00 0 0
AP453 75 87.90 0 0
AP453 100 111.60 0 0
AP453 999 111.60 25 27.80
The Qty 999 is just used to indicate an additional quantity.
What I have so far is a form with a Needed text box, Item combo box, Qty combo box, Price text box, AddlQty text box, and AddlPrice text box.
What I need is if the Item selected is AP453 and the amount entered in the Needed field is larger than 100 then the AddlQty will populate with 25 and the AddlPrice with 27.80. The AddlQty , AddlPrice, and Maximum quantity will vary by item numbers. For example, this item number has a maximum quantity of 100 before using additional quantity and price. But another item number may have a maximum quantity of 125 or 150 before using additionals.
I've been struggling with this issue for a while now. Any help is greatly appreciated.
Thanks.
Steve