Does any body know how I can do this, what I am doing is changing a group through a
Formula running of a parameter. Now everything works find except that if one of my outputs is of a different format. For example ( if sort =a then string, else if sort=b then string, else if sort=c then date) Crystal will want the last to be a string all so (so I can convert the date to a string by to text(date field) the only problem is the date sort is all jacked up then cause it is sorting it by text value not date value.
If I put the date as the first part same problem but in reverse wants strings to be dates.
This is my formula
if {?SortA}="T" then {Tkscale.VehicleID}
else if {?SortA}="H" then {Tkscale.CarrierID}
else if {?SortA}="P" then {Tkscale.ProductID}
else if {?SortA}="D" then {Aptruck.LastLoadDate}
else if {?SortA}="Ti" then {Aptruck.LastLoadTime}
Even if I was able to get date to work then I run into the same problem with the time field.
So how can I do a sort with different data values , that runs off a parameter value?
Any Ideas.
Thanks,
John
2000 machine, Crystal 8 in case any body though that might make a difference.
Formula running of a parameter. Now everything works find except that if one of my outputs is of a different format. For example ( if sort =a then string, else if sort=b then string, else if sort=c then date) Crystal will want the last to be a string all so (so I can convert the date to a string by to text(date field) the only problem is the date sort is all jacked up then cause it is sorting it by text value not date value.
If I put the date as the first part same problem but in reverse wants strings to be dates.
This is my formula
if {?SortA}="T" then {Tkscale.VehicleID}
else if {?SortA}="H" then {Tkscale.CarrierID}
else if {?SortA}="P" then {Tkscale.ProductID}
else if {?SortA}="D" then {Aptruck.LastLoadDate}
else if {?SortA}="Ti" then {Aptruck.LastLoadTime}
Even if I was able to get date to work then I run into the same problem with the time field.
So how can I do a sort with different data values , that runs off a parameter value?
Any Ideas.
Thanks,
John
2000 machine, Crystal 8 in case any body though that might make a difference.