Yes; I have a string field or column (Table.Fivedigits) which gives me different information depending on the row ID or Account ID, for example:
if the account ID='Alpha' then, the field should return a date;
if the account ID='Beta' then, the filed should reture a time;
I used the formula below for the time row and it works perfectly but I don't how to do the Date row
the whileprintingrecords;
NumberVar Hours;
NumberVar Minutes;
//NumberVar Seconds;
StringVar Timevalue;
If (Table.Fivedigits) = 'Beta' then
(Hours:=Truncate(ToNumber((Table.Fivedigits)3600);
Minutes:=Truncate(Remainder(ToNumber((Table.Fivedigits)3600)/60);
//Seconds:=Remainder(ToNumber({Table.Fivedigits}),60);
Timevalue:=ToText(Hours,'00') + ':' + ToText(Minutes,'00')); //+ ':' + ToText(Seconds,'00'));
Timevalue