Hi-
No idea how to solve this one....
I work for a distribution center and I'm trying to create code to calculate, given known dimensions of our products and qty's, the number of pallets needed to fill each order.
Here are the relevant fields:
skuid
percentpallet: the percentage of a pallet that an unit will utilize
unitqty: the total number of units.
for example, Order #1:
skuid, unitqty, percentpallet
A2128, 15, .05 (.75 PALLETS)
A2129, 10, .01 (.1 PALLETS)
A2130, 10, .12 (1.2 PALLETS)
A2131, 3, .05 (.15 PALLETS)
Does anyone know of a code that will provide this result:
Pallet1:
A2128 QTY 15
A2129 QTY 10
A2130 QTY 1
.97 PALLET
Pallet2
A2130 QTY 8
.96 PALLET
Pallet3:
A2130 QTY 1
A2131 QTY 3
.27 PALLET
or something similar?
basically need to loop until a variable <=1.00 If there's remaing qty for each sku, then it must be used for the next pallet
????
I have a good knowledge of access but little with VBA. PLEASE HELP!!!
No idea how to solve this one....
I work for a distribution center and I'm trying to create code to calculate, given known dimensions of our products and qty's, the number of pallets needed to fill each order.
Here are the relevant fields:
skuid
percentpallet: the percentage of a pallet that an unit will utilize
unitqty: the total number of units.
for example, Order #1:
skuid, unitqty, percentpallet
A2128, 15, .05 (.75 PALLETS)
A2129, 10, .01 (.1 PALLETS)
A2130, 10, .12 (1.2 PALLETS)
A2131, 3, .05 (.15 PALLETS)
Does anyone know of a code that will provide this result:
Pallet1:
A2128 QTY 15
A2129 QTY 10
A2130 QTY 1
.97 PALLET
Pallet2
A2130 QTY 8
.96 PALLET
Pallet3:
A2130 QTY 1
A2131 QTY 3
.27 PALLET
or something similar?
basically need to loop until a variable <=1.00 If there's remaing qty for each sku, then it must be used for the next pallet
????
I have a good knowledge of access but little with VBA. PLEASE HELP!!!