I have a problem. i am trying tio use crystal reports to report off of a heat data base. i want to use a parameter date range. Heat stores dates as a string so we need to convert it. I created the following formula:
__________________________________________________________
whilereadingrecords;
datevar wdate;
wdate:=Date(tonumber({Profile.InstallDate}[1 to 4]),
tonumber({Profile.InstallDate}[6 to 7]),tonumber({Profile.InstallDate}[9 to 10]));
datediff("d",wdate,currentdate);
_________________________________________________
When I check for errors its fine but when I refresh my data and get the parameter screen I enter in the beginning and ending date. Then I get the message sting is non numeric and the report is blank. Any ideas what I should be looking at?
Cretin
__________________________________________________________
whilereadingrecords;
datevar wdate;
wdate:=Date(tonumber({Profile.InstallDate}[1 to 4]),
tonumber({Profile.InstallDate}[6 to 7]),tonumber({Profile.InstallDate}[9 to 10]));
datediff("d",wdate,currentdate);
_________________________________________________
When I check for errors its fine but when I refresh my data and get the parameter screen I enter in the beginning and ending date. Then I get the message sting is non numeric and the report is blank. Any ideas what I should be looking at?
Cretin