2. Juli 2007 13:51
r_Customer.SETRANGE(r_Customer."Date Filter");
MaxSales := 0;
IF r_Customer.FINDSET(FALSE, FALSE) THEN REPEAT
MaxSales += Customer."Sales (LCY)";
UNTIL r_Customer.NEXT = 0;
2. Juli 2007 14:31
r_Customer.SETRANGE("Date Filter", Customer."Date Filter");
MaxSales := 0;
IF r_Customer.FINDSET(FALSE, FALSE) THEN REPEAT
r_Customer.CALCFIELDS("Sales (LCY)");
MaxSales += Customer."Sales (LCY)";
UNTIL r_Customer.NEXT = 0;
2. Juli 2007 14:46
CustLedgEntry.SETCURRENTKEY("Customer No.", "Posting Date");
CustLedgEntry.SETFILTER("Posting Date", Customer."Date Filter");
CustLedgEntry.CALCSUMS("Sales (LCY)");
MaxSales := CustLedgEntry."Sales (LCY)";
2. Juli 2007 15:01
SilverX hat geschrieben:SETRANGE mit einem FILTER?
2. Juli 2007 15:42
2. Juli 2007 15:46
2. Juli 2007 16:30
CustLedgEntry.SETCURRENTKEY("Customer No.", "Posting Date");
CustLedgEntry.SETFILTER("Posting Date", '%1', Customer."Date Filter");
CustLedgEntry.CALCSUMS("Sales (LCY)");
MaxSales := CustLedgEntry."Sales (LCY)";
2. Juli 2007 17:09
2. Juli 2007 17:12
3. Juli 2007 08:22