Hi All,
I am using crxi2 R3 to SQL2000 DB
I have a report that uses a dynamic prompt for
selecting first a place then dynamic brings up list of values to select from that.
I would like to add an additional parameter based (not dynamic) but referencing a formular which in turn references anther formular taken from this forum Mr Hamadys I believe the two formulas are as follows:
the first converts DOB to Age:
WhileReadingRecords;
Datevar Birth:= DateTimeToDate ({viewdayslastvisit.DOB});
Datevar Ann:= currentdate;
if (Month(Ann) * 100) + Day (Ann) >=(Month(Birth) *100) + Day (Birth)
then Year (Ann) - Year(Birth)
else Year (Ann) - Year(Birth) -1
the second uses the above to get groupings:
if {@age} < 5 then "0 to 4" else
if {@age} < 11 then "5 to 11" else
if {@age} < 16 then "12 to 16" else
if {@age} < 24 then "17 to 24" else
if {@age} < 34 then "25 to 34" else
if {@age} < 44 THEN "35 to 44" else
if {@age} < 54 then "45 to 54" else
if {@age} < 64 then "55 to 64" else
if {@age} < 74 then "65 to 74" else
if {@age} < 84 then "75 to 84" else
if {@age} < 94 then "85 to 94" else
if {@age} < 115 then "95 and above"
it is this formular I would like to add as a parameter?
Can this be done? Any help greatly appreciated.
Kind Regards
Tonyg
I am using crxi2 R3 to SQL2000 DB
I have a report that uses a dynamic prompt for
selecting first a place then dynamic brings up list of values to select from that.
I would like to add an additional parameter based (not dynamic) but referencing a formular which in turn references anther formular taken from this forum Mr Hamadys I believe the two formulas are as follows:
the first converts DOB to Age:
WhileReadingRecords;
Datevar Birth:= DateTimeToDate ({viewdayslastvisit.DOB});
Datevar Ann:= currentdate;
if (Month(Ann) * 100) + Day (Ann) >=(Month(Birth) *100) + Day (Birth)
then Year (Ann) - Year(Birth)
else Year (Ann) - Year(Birth) -1
the second uses the above to get groupings:
if {@age} < 5 then "0 to 4" else
if {@age} < 11 then "5 to 11" else
if {@age} < 16 then "12 to 16" else
if {@age} < 24 then "17 to 24" else
if {@age} < 34 then "25 to 34" else
if {@age} < 44 THEN "35 to 44" else
if {@age} < 54 then "45 to 54" else
if {@age} < 64 then "55 to 64" else
if {@age} < 74 then "65 to 74" else
if {@age} < 84 then "75 to 84" else
if {@age} < 94 then "85 to 94" else
if {@age} < 115 then "95 and above"
it is this formular I would like to add as a parameter?
Can this be done? Any help greatly appreciated.
Kind Regards
Tonyg