I have reviewed this topic and cannot find anything relative to my problem.
My database is Access and I am using cR 8.5. My database is created by a VB6 application and one of the entries in the table is a date field (incDate). This field is stored as a string intentionally (ie Jan 2003, Feb 2003 etc).
I use this date field in both a crosstab report and a chart and currently I have created a formula @SortDate which is CDATE({DB.incDate}). This seems to work but puts the date in the format 1/01/2003, 1/02/2003 etc.
I then tried TOTEXT(CDATE({DB.incDate}),"mmm yyyy" - very strange results. My date ends up something like MMM 2003 etc.
I then used CR8.5 with my report in the .rpt format and simply used CDATE(etc) to get the date then used format field to put it in the correct date format (ie Jan 2003) etc. This all worked and I then tried to do the same with my report in VB. Although the report designer from within VB is almost identical it does not allow me to format the formula driven date field of my crosstab as a date.
Looks like I have no option but to use a formula only - can someone please explain why my TOTEXT does not work. OR is there a better way to do it.
My database is Access and I am using cR 8.5. My database is created by a VB6 application and one of the entries in the table is a date field (incDate). This field is stored as a string intentionally (ie Jan 2003, Feb 2003 etc).
I use this date field in both a crosstab report and a chart and currently I have created a formula @SortDate which is CDATE({DB.incDate}). This seems to work but puts the date in the format 1/01/2003, 1/02/2003 etc.
I then tried TOTEXT(CDATE({DB.incDate}),"mmm yyyy" - very strange results. My date ends up something like MMM 2003 etc.
I then used CR8.5 with my report in the .rpt format and simply used CDATE(etc) to get the date then used format field to put it in the correct date format (ie Jan 2003) etc. This all worked and I then tried to do the same with my report in VB. Although the report designer from within VB is almost identical it does not allow me to format the formula driven date field of my crosstab as a date.
Looks like I have no option but to use a formula only - can someone please explain why my TOTEXT does not work. OR is there a better way to do it.