I'm developing a report in Crystal Reports 9; I have two columns in a SQL table, eMonth and eYear, neither of which has a date/time designation, they are just numbers that represent months and years (eMonth: 1 through 12, and eYear: 2001, 2002, 2003, etc.).
I am not altogether familiar with formulas, and I am trying to come up with one that will allow me to put them together as a date (e.g., 1/2003), and be able to sort a group on that date/formula. Sorting a group on either the month or the year singularly does not return the results that I'm looking for.
What I have tried (unsuccessfully) so far:
StringVar eMonth:="";
StringVar eYear:="";
(if isnull({EOM.eMonth}) then eMonth:= ""
else eMonth:= {EOM.eMonth} + Month ()"/");
(if isnull({EOM.eYear}) then eYear:= ""
else eYear:= {EOM.eYear} + "");
TRIM (eMonth + eYear);
and...
Left({EOM.eMonth}, 2) + "/" + right({EOM.eYear}, 7)
I've had to learn this application on the fly without the benefit of anything but the manual and some of the knowledge base on their website, so I'm not sure how to proceed with this particular piece. Any help would be greatly appreciated! Thanks!
I am not altogether familiar with formulas, and I am trying to come up with one that will allow me to put them together as a date (e.g., 1/2003), and be able to sort a group on that date/formula. Sorting a group on either the month or the year singularly does not return the results that I'm looking for.
What I have tried (unsuccessfully) so far:
StringVar eMonth:="";
StringVar eYear:="";
(if isnull({EOM.eMonth}) then eMonth:= ""
else eMonth:= {EOM.eMonth} + Month ()"/");
(if isnull({EOM.eYear}) then eYear:= ""
else eYear:= {EOM.eYear} + "");
TRIM (eMonth + eYear);
and...
Left({EOM.eMonth}, 2) + "/" + right({EOM.eYear}, 7)
I've had to learn this application on the fly without the benefit of anything but the manual and some of the knowledge base on their website, so I'm not sure how to proceed with this particular piece. Any help would be greatly appreciated! Thanks!