giggles7840
IS-IT--Management
CR XI R2
Win XP
I have a formula built off of several other formulas. It identifies records as 1 or 0. Then I want to use this formula in the record selection formula to prevent records from coming in. This has worked on several other formulas I have written/had help writing, but this one just wont go. below is the formula. Let me know if you want to see the other formulas that make up the Total Days formula.
stringvar array Dates := [totext({@Actual - 00 Date}),totext({@Actual - 01 Date}),totext({@Actual - 02 Date}),
totext({@Actual - 2A Date}),totext({@Actual - 03 Date}),totext({@Actual - 3A Date}),totext({@Actual - 04 Date}),
totext({@Actual - 05 Date}),totext({@Actual - 06 Date}),totext({@Actual - 07 Date}),totext({@Actual - 08 Date}),
totext({@Actual - 09 Date}),totext({@Actual - 10 Date}),totext({@Actual - 11 Date}),totext({@Actual - 12 Date})];
stringvar array Desc := ["00 2 Wks Prior to Trench","01 Layout Trench","02 Pour Slab","03 Raise 1st Floor Walls",
"03 Raise 1st Floor Walls","3A Load Trusses","04 Roof Sheathing Inspection","05 Framing Inspection",
"06 Drywall Nail Inspection","07 Install Cabinets","08 Start Flooring","09 Final Inspection","10 Notice of Completion",
"11 Quality Control Walk","12 Buyer Walk Through"];
numbervar cnt := 0;
numbervar i := 0;
numbervar TotalDays := {@Total Days};
i := ubound(Dates);
while i > 1 and Dates = "" do
i := i - 1;
if Desc like ["01*","02*","03*","04*","05*","06*","07*","08*","3A*","2A*"] then
if TotalDays <=20
then
1 else 0;
Win XP
I have a formula built off of several other formulas. It identifies records as 1 or 0. Then I want to use this formula in the record selection formula to prevent records from coming in. This has worked on several other formulas I have written/had help writing, but this one just wont go. below is the formula. Let me know if you want to see the other formulas that make up the Total Days formula.
stringvar array Dates := [totext({@Actual - 00 Date}),totext({@Actual - 01 Date}),totext({@Actual - 02 Date}),
totext({@Actual - 2A Date}),totext({@Actual - 03 Date}),totext({@Actual - 3A Date}),totext({@Actual - 04 Date}),
totext({@Actual - 05 Date}),totext({@Actual - 06 Date}),totext({@Actual - 07 Date}),totext({@Actual - 08 Date}),
totext({@Actual - 09 Date}),totext({@Actual - 10 Date}),totext({@Actual - 11 Date}),totext({@Actual - 12 Date})];
stringvar array Desc := ["00 2 Wks Prior to Trench","01 Layout Trench","02 Pour Slab","03 Raise 1st Floor Walls",
"03 Raise 1st Floor Walls","3A Load Trusses","04 Roof Sheathing Inspection","05 Framing Inspection",
"06 Drywall Nail Inspection","07 Install Cabinets","08 Start Flooring","09 Final Inspection","10 Notice of Completion",
"11 Quality Control Walk","12 Buyer Walk Through"];
numbervar cnt := 0;
numbervar i := 0;
numbervar TotalDays := {@Total Days};
i := ubound(Dates);
while i > 1 and Dates = "" do
i := i - 1;
if Desc like ["01*","02*","03*","04*","05*","06*","07*","08*","3A*","2A*"] then
if TotalDays <=20
then
1 else 0;