Hi!
I just can't seem to get this. I have the following code in the old DOS FOX app I am reworking in VFP 6.0
I am trying to include this in a SELECT to set up a report. This is what I am trying; but even tho I don't get any kind of error, the cursor does not show 'ordrreq'
I would really appreciate it if someone would give me a push in the right direction.
Thanks as always.
Judi
I just can't seem to get this. I have the following code in the old DOS FOX app I am reworking in VFP 6.0
Code:
IF shiptotl <= purtotl
ordrreq = purtotl - shptotl + shipped
ELSE
ordrreq = shipped - (shptotl-purtotl)
IF ordrreq < 0
ordrreq = 0
ENDIF
ENDIF
I am trying to include this in a SELECT to set up a report. This is what I am trying; but even tho I don't get any kind of error, the cursor does not show 'ordrreq'
Code:
SUM(IFF((orders.shiptotl <= purtotl),;
(purtotl - (shptotl + orders.shipped)), ;
(orders.shipped -(shptotl - purtotl)))) AS ordrreg ;
I would really appreciate it if someone would give me a push in the right direction.
Thanks as always.
Judi