formular (1 Viewer)

rainbows

Registered User.
Local time
Today, 10:30
Joined
Apr 21, 2017
Messages
425
i am trying to create a formular that allows me to add the allocated stock into it but struggling , at this time it looks at what the order quantity is minus what's in stock . what's on order and and tells me the quantity to order. IE DIFFQTY1 in the sceenshot below tells me i am minus 1on 2 items

I am now trying to include what in allocated for example diffyqty now tells me i need a minus 6 and a minus 1 the problem i am having is the criteria <0 when i put this in the diffqty column i get this error


1661787429271.png




1661787672528.png

this is what is in the diffqty1 diffqty1: Round([StockQty]+[OnOrderQty]+[PendingQty]-Sum([Order Details]!OrderQty*[Product Detail]!ProductQty),4)


thanks
steve
 

Attachments

  • 1661787645346.png
    1661787645346.png
    117.9 KB · Views: 81

LarryE

Active member
Local time
Today, 10:30
Joined
Aug 18, 2021
Messages
603
i am trying to create a formular that allows me to add the allocated stock into it but struggling , at this time it looks at what the order quantity is minus what's in stock . what's on order and and tells me the quantity to order. IE DIFFQTY1 in the sceenshot below tells me i am minus 1on 2 items

I am now trying to include what in allocated for example diffyqty now tells me i need a minus 6 and a minus 1 the problem i am having is the criteria <0 when i put this in the diffqty column i get this error


View attachment 102875



View attachment 102877
this is what is in the diffqty1 diffqty1: Round([StockQty]+[OnOrderQty]+[PendingQty]-Sum([Order Details]!OrderQty*[Product Detail]!ProductQty),4)


thanks
steve
Try:
IIf(IsNull([SumOfqty allocated]),...etc.
 

rainbows

Registered User.
Local time
Today, 10:30
Joined
Apr 21, 2017
Messages
425
i tried that but got this error


diffqty: IIf(isnull([SumOfqty allocated],[diffqty1],Round([StockQty]+[OnOrderQty]+[PendingQty]-[stock allocation Query]![SumOfqty allocated]-Sum([Order Details]![OrderQty]*[Product Detail]![ProductQty]),4))




1661791102263.png
 

rainbows

Registered User.
Local time
Today, 10:30
Joined
Apr 21, 2017
Messages
425
this managed to do it but i think it could be made smaller ?


diffqty: IIf([SumOfqty allocated] Is Null,Round([StockQty]+[OnOrderQty]+[PendingQty]-Sum([Order Details]![OrderQty]*[Product Detail]![ProductQty]),4),Round([StockQty]+[OnOrderQty]+[PendingQty]-[stock allocation Query]![SumOfqty allocated]-Sum([Order Details]![OrderQty]*[Product Detail]![ProductQty]),4))
 

LarryE

Active member
Local time
Today, 10:30
Joined
Aug 18, 2021
Messages
603
i tried that but got this error


diffqty: IIf(isnull([SumOfqty allocated],[diffqty1],Round([StockQty]+[OnOrderQty]+[PendingQty]-[stock allocation Query]![SumOfqty allocated]-Sum([Order Details]![OrderQty]*[Product Detail]![ProductQty]),4))




View attachment 102878
That is because you missed the ending paraenthisis after SumOfqty allocated. Try again exactly like I typed it. IsNull[[SumOfqty allocated])
 

Users who are viewing this thread

Top Bottom