Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3167

Date Variables, compares to NULL and reinitialize

$
0
0

Hi,

 

I have the following formula on a detail line:

 

shared DateVar   PO_Delivery_Date;

shared StringVar PO_Vendor_Name;

shared NumberVar PO_Qty;

 

if   {Inventory_Stock_Report.PO_Delivery_Date} > PO_Delivery_Date

then ( PO_Delivery_Date := {Inventory_Stock_Report.PO_Delivery_Date};

       PO_Vendor_Name   := {Inventory_Stock_Report.PO_Vendor_Name};

       PO_Qty           := {Inventory_Stock_Report.PO_Qty}; );

 

Works fine when I display in the Group Footer, using formulas for PO_Delivery_Date, PO_Vendor_Name, and PO_Qty.

 

Problem is, I need the earliest PO_Delivery_Date, not the latest.

 

Default value for PO_Delivery_Date is NULL, and there are lots of 'em.  If I switch to "<", I just get blank fields for all three display formulas.

 

I've tried playing with combinations of NOT ISNULL, and comparing to DATE(1900-0101), but can't seem to find the right combination.

 

Along with this, I also need to know the syntax to reinitialize the DateVar for the RESET formula.


Viewing all articles
Browse latest Browse all 3167

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>