Hey Marcel,
That didnt work. Here is my code
try if(userin[1 : 1] == "@") userin = userin[2 : strlib.characterLen(clip(userin))]; end strlib.defaultDateFormat = " dd.MM.yyyy"; getplace_historyrec getplace_historyrec[0]; get getplace_historyrec with #sql{ SELECT clpdt||' ('||count(*)||')' as data FROM qs36f.claims WHERE cno in ( SELECT CWDDIV FROM ntfiles.cwuserdiv WHERE CWDUSER =:userin) and clpdt > current date - 4 months GROUP BY clpdt ORDER BY clpdt desc }; return(getplace_historyrec); onException(exception AnyException) genericmessage("getcashcheck", " ", userin, exception); end
nick_tn