Hi
Using oracle 8 and Crystal 10
I have a report which stores only month and year (as numbers) and I need to perform a calculation based on the last day of that month field.
I have converted it using the following formulas:-
@GVAToDate
cdate(({GVA.YEMONTH}&'/'&{GVA.YEAR}))
@LastDay
dateserial(year({@GVAToDate}), month({@GVAToDate})+1,01)-1
This seems to work fine when running the report through the designer.
When I publish it through Enterprise I get error:-
Errors Occured When Refreshing Report.
-2147191654 - Bad date format string. - Logon To Server is OK - Reading Records
Can anyone help?
Thanks
jcl5
Using oracle 8 and Crystal 10
I have a report which stores only month and year (as numbers) and I need to perform a calculation based on the last day of that month field.
I have converted it using the following formulas:-
@GVAToDate
cdate(({GVA.YEMONTH}&'/'&{GVA.YEAR}))
@LastDay
dateserial(year({@GVAToDate}), month({@GVAToDate})+1,01)-1
This seems to work fine when running the report through the designer.
When I publish it through Enterprise I get error:-
Errors Occured When Refreshing Report.
-2147191654 - Bad date format string. - Logon To Server is OK - Reading Records
Can anyone help?
Thanks
jcl5